The Content-Length
header indicates the size of the message body, in bytes, sent to the recipient.
Header type | Request header, Response header, Payload header |
---|---|
Forbidden header name | yes |
CORS-safelisted response header | yes |
The Content-Length
header indicates the size of the message body, in bytes, sent to the recipient.
Header type | Request header, Response header, Payload header |
---|---|
Forbidden header name | yes |
CORS-safelisted response header | yes |
Content-Length: <length>
The length in decimal number of octets.
Specification |
---|
HTTP Semantics # field.content-length |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
Content-Length |
Yes |
12 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
cors_response_safelist |
76 |
≤79 |
87 |
No |
63 |
12.1 |
76 |
76 |
87 |
54 |
12.2 |
12.0 |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length