Outils pour utilisateurs

Outils du site


programmation_http

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
programmation_http [2010/01/22 12:20] thierryprogrammation_http [2010/09/24 14:32] (Version actuelle) thierry
Ligne 1: Ligne 1:
 ====== HTTP ====== ====== HTTP ======
 +
 +Liens:
 +  *http://fr.wikipedia.org/wiki/Hypertext_Transfer_Protocol
 +  *http://www.iprelax.fr/http/1945tm.php
 +
  
 Vu sous l'angle du protocole et de la programmation. Vu sous l'angle du protocole et de la programmation.
Ligne 41: Ligne 46:
  
 ===== host ===== ===== host =====
 +Changez d'"hote" (le nom de la machine qu'on vise derrière l'ip unique)...
 +
 +Par exemple, on veut atteindre l'hôte ''dvdrip.fr'' :
 +  $ echo -n -e "GET / HTTP/1.0\nHost: dvdrip.fr\n\n" | nc thierry-jaouen.fr 80
 +  HTTP/1.1 302 Found
 +  Date: Fri, 22 Jan 2010 12:21:28 GMT
 +  Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_musicindex/1.2.2 mod_perl/2.0.4 Perl/v5.10.0
 +  Location: http://dvdrip.fr/dvdrip.html
 +  Content-Length: 213
 +  Connection: close
 +  Content-Type: text/html; charset=iso-8859-1
 +  
 +  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 +  <html><head>
 +  <title>302 Found</title>
 +  </head><body>
 +  <h1>Found</h1>
 +  <p>The document has moved <a href="http://dvdrip.fr/dvdrip.html">here</a>.</p>
 +  </body></html>
  
programmation_http.1264162847.txt.gz · Dernière modification : 2010/01/22 12:20 de thierry