{{HTTPSidebar}}
The Content-Length
entity header is indicating the size of the entity-body, in decimal number of OCTETs, sent to the recipient.
Header type | {{Glossary("Entity header")}} |
---|---|
{{Glossary("Forbidden header name")}} | yes |
Syntax
Content-Length: <length>
Directives
- <length>
- The length in decimal number of octets.
Specifications
Specification | Title |
---|---|
{{RFC("7230", "Content-Length", "3.3.2")}} | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
Browser compatibility
The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out https://github.com/mdn/browser-compat-data/README.md and send us a pull request
{{Compat}}
See also
- {{HTTPHeader("Transfer-Encoding")}}