On Tue, 2002-06-04 at 13:40, Chuck Esterbrook wrote:
> On Tuesday 04 June 2002 11:16 am, Ian Bicking wrote:
> > Was your HEAD request also HTTP/0.9 like this (i.e., no protocol
> > version specified)?  Apache might not specify the host if you don't
> > specify it when you connect.  Most requests will look like:
> >
> > GET /webkit/MyApp HTTP/1.1
> > Host: localhost
> > User-Agent: yada yada (and maybe some more headers)
> >
> >   Ian
> 
> It probably was 0.9 as HEAD usually comes from older browsers. (GET 
> If-Modified-Since has effectively replaced HEAD & GET requests these 
> days.)
> 
> But note that HTTP_HOST is *not* the remote host, but the server that 
> Apache is running on. It shouldn't be HTTP protocol version dependent. 
> My box is always "foobar.com" all day, every day.

Apache doesn't know the computer only has one name -- there could be
other name-based virtual hosts, and the only distinction is the Host
header (which you didn't pass).  It would make sense to have a default
setting for this, as Apache doesn't appear to give a default.  There's a
NameBasedVirtualHost setting (or something like it), maybe that would
effect the HTTP_HOST variable (like you might have it on without
realizing it).

HTTP/1.0 also doesn't require a Host header, and lots of bots only speak
1.0, so that might be the problem as well.

  Ian



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to