What it means
The server refuses a request that has a body but no Content-Length header.
Why you're seeing it
- A client sending a chunked body (
Transfer-Encoding: chunked) to a server that doesn't accept it. - A
POSTwith no body and noContent-Length: 0.
How to fix it
- Send
Content-Length, or buffer the body so your HTTP library can compute it. - For empty
POSTrequests, sendContent-Length: 0.
Example response
HTTP/1.1 411 Length Required Content-Length: 0