Skip to content

使用PostJson进行http请求,请求体存在多余字段 #37

@Ligh9

Description

@Ligh9

为什么会请求体会有多余的信息?
测试代码:
func httpPostJson() {
jsonStr := "{"name":"requests_post_test"}"
req := requests.Requests()
req.Proxy("http://127.0.0.1:8083")
resp, _ := req.PostJson("https://www.httpbin.org/post", jsonStr)
println(resp.Text())
}
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions