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
HTTP

GET

Demande

Syntaxe

GET ressource protocole

Paramètres

Nom Description
ressource Ce paramètre permet d'indiquer l'emplacement de la page Web sur le site.
protocole Ce paramètre permet d'indiquer le protocole que le client veut utiliser :
Valeur Description
HTTP/1.0 Cette valeur permet d'indiquer le protocole HTTP 1.0 (RFC 1945)
HTTP/1.1 Cette valeur permet d'indiquer le protocole HTTP 1.1 (RFC 2068, RFC 2616, RFC 7230, RFC 7237)
... ...

Description

Cette méthode permet d'indiquer que l'envoi s'effectue en passant les champs du formulaires en paramètre URL.

Remarques

Exemple

Si vous souhaitez vous connecter en HTTP au port 80 sur le site www.gladir.com et demander le contenu :

GET / HTTP/1.0
HOST: www.gladir.com

On obtiendra le résultat suivant :

telnet www.gladir.com 80
Trying 69.90.160.40...
Connected to www.gladir.com.
Escape character is '^]'.
GET / HTTP/1.0
HOST: www.gladir.com

HTTP/1.1 301 Moved Permanently
Date: Wed, 30 Aug 2017 17:03:51 GMT
Server: Apache
Location: https://www.gladir.com/
Content-Length: 231
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!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>
Connection closed by foreign host.


PARTAGER CETTE PAGE SUR
Dernière mise à jour : Mercredi, le 30 août 2017