Skip to content

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

@ti0s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions