>ensuite tu tapes : "GET /about.html HTTP/1.1" suivi de 2 retours chariot
Ca fait deja au moins 2 posts qui disent "2 retours chariot". Et la je proteste ! :-)
Soit on fait du HTTP/1.0 et alors les 2 retours chariots sont corrects.
Soit on fait du HTTP/1.1 et on doit obligatoirement mettre une ligne Host: server.com.
[^] # Re: intercepter le html a la volé
Posté par Edouard Gomez . En réponse au journal intercepter le html a la volé. Évalué à 1.
Ca fait deja au moins 2 posts qui disent "2 retours chariot". Et la je proteste ! :-)
Soit on fait du HTTP/1.0 et alors les 2 retours chariots sont corrects.
Soit on fait du HTTP/1.1 et on doit obligatoirement mettre une ligne Host: server.com.
Voir chapitre 14.23 Host du document http://www.faqs.org/rfcs/rfc2616.html.(...)
Quote:
A client MUST include a Host header field in all HTTP/1.1 request messages .