[Python-Dev] Remove HTTP 0.9 support (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Dec 16 18:02:45 CET 2010
- Previous message: [Python-Dev] Remove HTTP 0.9 support
- Next message: [Python-Dev] Remove HTTP 0.9 support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 17 Dec 2010 00:52:14 +0800 Senthil Kumaran <orsenthil at gmail.com> wrote:
Actually, it is turning out to be true:
http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html#Response According to HTTP 1.0, When a request is Simple-Request, it means a VERB URL (without a version) and it generally corresponds to HTTP 0.9 And when a server receives such a Simple-Request, it sends a Simple-Response where it does not send the headers back. I think, the same is exhibited by other Servers as well www.google.com, www.mozilla.org where for Invalid Request without version, you are sending a Simple-Request (HTTP 0.9) style and getting the corresponding response.
Yes, but only error or redirect responses:
$ nc www.google.fr 80 GET / HTTP/1.0 302 Found Location: http://www.google.fr/ [etc.]
$ nc www.mozilla.org 80 GET /
403 ForbiddenForbidden
You don't have permission to access /error/noindex.html on this server.
That's quite understandable, since most HTTP servers will expect a "host" header to know which site is actually desired. So a HTTP 0.9 client sending Simple-Requests has very little chance of being useful these days.
Regards
Antoine.
- Previous message: [Python-Dev] Remove HTTP 0.9 support
- Next message: [Python-Dev] Remove HTTP 0.9 support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]