commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Lubke <Ryan.Lu...@Sun.COM>
Subject Re: [Fwd: [HttpClient][PATCH] Correction to addHostRequestHeader +minor formatting cleanups]
Date Thu, 11 Jul 2002 15:00:12 GMT
On Thu, 2002-07-11 at 08:51, dion@multitask.com.au wrote:
> I don't see how an IP address can't be considered an internet hostname. 
> What if I send a GET / HTTP/1.1 to http://192.168.0.1?
> 
> If the hostname isn't part of the uri and it isn't the IP address, it 
> should be left blank and the GET / would fail, right?

Maybe I missed something here, but if the Request-URI is absolute, then
the Host header, no matter what the value should be ignored.

So in the case of 'GET / HTTP/1.1', if the target is identified by a
hostname resolvable by DNS, then the Host request-header will use that
hostname.

In the same case of 'GET / HTTP/1.1', if the target is identified by a 
an IP address, the Host request-header isn't really need (virtual host
routing by name is not an issue here), the the Host header will be sent,
but with an empty value.


> --
> dIon Gillard, Multitask Consulting
> Work:      http://www.multitask.com.au
> Developers: http://adslgateway.multitask.com.au/developers
> 
> 
> Ryan Lubke <Ryan.Lubke@Sun.COM> wrote on 07/11/2002 10:57:10 PM:
> 
> > 
> > > > 
> > > > So you are saying that because an ipaddress is not an internet host
> > > > name, the header field must be present but with an empty value. 
> Seems
> > > > like a reasonable intreptation.  Can anyone confirm that?
> > > I dunno....an IP address sounds like a host name to me in the absence 
> of 
> > > anything else...
> > > 
> > But should an IP address be considered the same as an internet host
> > name?  I don't think they should be considered equivalent.
> > 
> > Anyone else have input on this?
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail: 
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:commons-dev-help@jakarta.apache.org>
> > 



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message