requests icon indicating copy to clipboard operation
requests copied to clipboard

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

Open Ligh9 opened this issue 2 years ago • 0 comments

为什么会请求体会有多余的信息? 测试代码: 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

Ligh9 avatar Mar 08 '24 02:03 Ligh9