Content-Length

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

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Content-LengthChrome Full support YesEdge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support
Full support

See also