The Content-Length
entity header indicates the size of the entity-body, in bytes, sent to the recipient.
Header type | Entity header |
---|---|
Forbidden header name | yes |
Syntax
Content-Length: <length>
Directives
- <length>
- The length in decimal number of octets.
Specifications
Specification | Title |
---|---|
RFC 7230, section 3.3.2: Content-Length | 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 and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Content-Length | Chrome Full support Yes | Edge Full support 12 | Firefox Full support Yes | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support