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

POST请求参数为空会出现411异常 #60

Open
wvfeng opened this issue Aug 1, 2019 · 0 comments
Open

POST请求参数为空会出现411异常 #60

wvfeng opened this issue Aug 1, 2019 · 0 comments

Comments

@wvfeng
Copy link

wvfeng commented Aug 1, 2019

使用POST请求的时候如果没有请求体,则没有填充content-length这个请求头,有些服务器会响应HTTP Error 411. The request must be chunked or have a content length.导致请求失败,手动添加content length值为0可以正常请求。

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