The server requires a Content-Length header for this request.
411 Length Required means the server refuses a request body without a defined length. The client must send Content-Length; some servers do not accept Transfer-Encoding: chunked request bodies.
Content-Length: 0 (some servers and Google APIs insist on it).-X POST without -d, which sends no Content-Length.Content-Length: 0 for empty POSTs, or buffer the body so the length is known.| Header | Role |
|---|---|
Content-Length | The header the server wants. |
HTTP/1.1 411 Length Required
Content-Type: text/html
Connection: close