aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/http/headers/content-length/index.md
blob: f781431ef7eb5436f0e558f392dc3002bd24d93b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: Content-Length
slug: Web/HTTP/Headers/Content-Length
tags:
  - HTTP
  - en-tête
  - header
translation_of: Web/HTTP/Headers/Content-Length
---
{{HTTPSidebar}}

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.

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">Type d'en-tête</th>
      <td>{{Glossary("Entity header")}}</td>
    </tr>
    <tr>
      <th scope="row">{{Glossary("Forbidden header name")}}</th>
      <td>oui</td>
    </tr>
  </tbody>
</table>

## Syntaxe

    Content-Length: <longueur>

## Directives

- \<longueur>
  - : La longueur en octet (en base 10).

## Spécifications

| Spécification                                            | Titre                                                              |
| -------------------------------------------------------- | ------------------------------------------------------------------ |
| {{RFC("7230", "Content-Length", "3.3.2")}} | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |

## Compatibilité des navigateurs

{{Compat("http/headers/content-length")}}

## Voir aussi

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