Path: blob/main/files/en-us/web/http/headers/content-length/index.md
6546 views
------{{HTTPSidebar}}
The Content-Length header indicates the size of the message body, in bytes, sent to the recipient.
| Header type | {{Glossary("Request header")}}, {{Glossary("Response header")}}, {{Glossary("Payload header")}} |
|---|---|
| {{Glossary("Forbidden header name")}} | yes |
| {{Glossary("CORS-safelisted response header")}} | yes |
Syntax
Directives
<length>
: The length in decimal number of octets.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{HTTPHeader("Transfer-Encoding")}}