HTTP 4xx Client Error Status Codes/HTTP 411 Length Required

Missing required Content-Length

Section: Codes 410-421

HTTP 411 Length Required

text
text
curl -i -X POST https://example.com/upload --data-binary @file.bin
Explanation

The server refuses the request without a defined content length.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Codes 410-421
HTTP 410 Gone
Resource intentionally removed
OpenIn sheettextsame section
HTTP 412 Precondition Failed
Conditional request condition not met
OpenIn sheettextsame section
HTTP 413 Content Too Large
Payload too large
OpenIn sheettextsame section
HTTP 414 URI Too Long
Request target too long
OpenIn sheettextsame section
HTTP 415 Unsupported Media Type
Request body media type not supported
OpenIn sheettextsame section
HTTP 416 Range Not Satisfiable
Requested byte range is invalid
OpenIn sheettextsame section