Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/http/headers/content-length/index.md
6546 views
---
title: Content-Length slug: Web/HTTP/Headers/Content-Length browser-compat: http.headers.Content-Length
---

{{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

Content-Length: <length>

Directives

  • <length>

    • : The length in decimal number of octets.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{HTTPHeader("Transfer-Encoding")}}