Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1091283 of Content-Length

  • Revision slug: Web/HTTP/Headers/Content-Length
  • Revision title: Content-Length
  • Revision id: 1091283
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment

Revision Content

{{HTTPSidebar}}

The Content-Length entity header is indicating the size of the entity-body, in decimal number of OCTETs, sent to the recipient.

Header type {{Glossary("Entity header")}}
{{Glossary("Forbidden header name")}} no

Syntax

Content-Length: <length>

Directives

<length>
The length in decimal number of octets.

Specifications

Specification Title
{{RFC("7230", "Content-Length", "3.3.2")}} Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing

Browser compatibility

{{Compat}}

See also

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

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The <strong><code>Content-Length</code></strong> entity header is indicating the size of the entity-body, in decimal number of OCTETs, sent to the recipient.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Header type</th>
   <td>{{Glossary("Entity header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name")}}</th>
   <td>no</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">
Content-Length: &lt;length&gt;
</pre>

<h2 id="Directives">Directives</h2>

<dl>
 <dt>&lt;length&gt;</dt>
 <dd>The length in decimal number of octets.</dd>
</dl>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7230", "Content-Length", "3.3.2")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data/README.md">https://github.com/mdn/browser-compat-data/README.md</a> and send us a pull request</p>

<p>{{Compat}}</p>

<h2>See also</h2>

<ul>
 <li>{{HTTPHeader("Transfer-Encoding")}}</li>
</ul>
Revert to this revision