Content-Length

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

L'en-tête (header) Content-Length indique la taille en octets (exprimée en base 10) du corps de la réponse envoyée au client.

Type d'en-tête Entity header
Forbidden header name oui

Syntaxe

Content-Length: <longueur>

Directives

<longueur>

La longueur en octet (en base 10).

Spécifications

Specification
HTTP Semantics
# field.content-length

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Content-Length
CORS-safelisted response header

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Voir aussi