request
request copied to clipboard
发送POST数据包,遇到302怎么输出302状态码,而不是跳转后的状态码
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