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

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

Open
Ligh9 opened this issue Mar 8, 2024 · 0 comments
Open

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

Ligh9 opened this issue Mar 8, 2024 · 0 comments

Comments

@Ligh9
Copy link

Ligh9 commented Mar 8, 2024

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

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