Section courante

A propos

Section administrative du site

 Protocole  Élément  Annexe 
AppleTalk
FTP (File Transfer Protocol)
HTTP (HyperText Transfer Protocol)
ICMP (Internet Control Message Protocol)
IMAP (Internet Message Access Protocol)
IP (Internet Protocol)
LDAP (Lightweight Directory Access Protocol)
LINX
POP3 (Pop Office Protocol-3)
PPP (Point-to-Point Protocol)
QUIC (Quick UDP Internet Connections)
RDP (Remote Desktop Protocol)
SMTP (Mail Transfer Protocol)
SOAP (Simple Object Access Protocol)
SSL (Secure Socket Layer)
TCP (Transfer Control Protocol)
TCP/IP (Transfer Control Protocol/Internet Protocol)
TELNET (TErminal NETwork)
TLS (Transport Layer Security)
UDP (User Datagram Protocol)
XML-RPC (Remote procedure call-Extensible Markup Language)
Introduction
Entêtes
Méthodes
Référence des messages d'états et d'erreurs HTTP
Requête HTTP via TELNET

Content-Length:

Longueur du contenu
HTTP Entêtes

Syntaxe

Content-Length: size

Paramètres

Nom Description
size Ce paramètre permet d'indiquer la longueur du contenu en octets.

Description

Ce champ d'entête permet d'indiquer la taille en octets, spécifiée avec une base décimal, du corps de la réponse envoyée au client.

Remarques

Exemple

L'exemple suivant permet d'indiquer la longueur d'un contenu d'une page de redirection :

Content-Length: 231

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.gladir.com/">here</a>.</p>
</body></html>


Dernière mise à jour : Vendredi, le 10 janvier 2020