request icon indicating copy to clipboard operation
request copied to clipboard

发送POST数据包,遇到302怎么输出302状态码,而不是跳转后的状态码

Open ti0s opened this issue 2 years ago • 0 comments

c = request.Client{
		Context:        context.Background(),
		Method:         "POST",
		URL:            url,
		Timeout:        TIMEOUT,
		ProxyURL:       "http://127.0.0.1:8080",
		URLEncodedForm: "username=admin&password=123456",
	}
resp = c.Send()
resp.Code()  # 200

ti0s avatar Jul 26 '23 08:07 ti0s