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

Requête HTTP via TELNET

Si vous avez la commande TELNET d'installer, vous devez l'indiquer en ligne de commande le nom de domaine du serveur suivi du numéro du port comme ceci :

telnet www.gladir.com 80

Vous aurez ensuite un message comme ceci allant être envoyé par le serveur :

telnet www.gladir.com 80
Trying 69.90.160.40...
Connected to www.gladir.com.
Escape character is '^]'.

Vous tapez ensuite le texte suivant suivi de deux fois la touche ENTER pour obtenir la page d'accueil avec un protocole HTTP 1.0 :

HEAD / HTTP/1.0ENTER
HOST: www.gladir.comENTER
ENTER
ENTER

vous obtenir ensuite un résultat comme ceci :

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


Dernière mise à jour : Mercredi, le 30 août 2017