Skip to content

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

Description

@ti0s
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions