Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ti0s opened this issue Jul 26, 2023 · 0 comments

Comments

@ti0s
Copy link

ti0s commented Jul 26, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant