httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric L. Johnson" <esi-e...@cfl.rr.com>
Subject Re: [users@httpd] problems with request line for the apache server
Date Wed, 09 Jun 2004 21:02:52 GMT
Thank you very much Joshua!!!!  That fixes my problem!

Eric.

----- Original Message -----
From: "Joshua Slive" <joshua@slive.ca>
To: <users@httpd.apache.org>
Sent: Wednesday, June 09, 2004 4:58 PM
Subject: Re: [users@httpd] problems with request line for the apache server


>
> On Wed, 9 Jun 2004, Eric L. Johnson wrote:
>
> > However, if I telnet to the MSN site and perform the following:
> >
> > GET / HTTP/1.1
> >
> > The results come out as follows:
> >
> > HTTP/1.1 400 Bad Request (which is not the desired result)
> > .
>
> > Why do I sometimes have to use "GET / HTTP/1.0 vs. GET / HTTP/1.1" to
> > obtain the desired results on some web pages and not on others.
>
> If you read a little farther in the HTTP spec, you'll see that the Host:
> header is *required* by HTTP/1.1, and servers MUST reject requests that
> don't have it.  On the other hand, the Host: header is optional in
> HTTP/1.0.  If you found server that accept an HTTP/1.1 request without the
> Host: header, then they are not really HTTP/1.1 servers.
>
> > I have
> > even varied the format of the request line to look the like the
> > following: "GET / HTTP-1.1" or "GET / HTTP 1.1" which has afforded me
> > more consistent results on some web sites,
>
> Since neither of these are valid HTTP version strings, the server is being
> kind to you and assuming you meant to say HTTP/1.0.
>
> Your requests should look like this:
> telnet www.example.com 80
> GET / HTTP/1.1
> Host: www.example.com
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message