You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@multitask.com.au on 2002/07/11 16:42:38 UTC
Re: [Fwd: [HttpClient][PATCH] Correction to addHostRequestHeader +minor
formatting cleanups]
That works for me
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers
Ryan Lubke <Ry...@Sun.COM> wrote on 07/12/2002 01:00:12 AM:
> 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 <Ry...@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:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
Re: [Fwd: [HttpClient][PATCH] Correction
to addHostRequestHeader +minor formatting cleanups]
Posted by Ryan Lubke <Ry...@Sun.COM>.
Ok, so we have an agreement on the IP address issue, however, what are
your thoughts on sending the Host header with HTTP/1.0 request (see
other posts in this thread).
-rl
On Thu, 2002-07-11 at 09:42, dion@multitask.com.au wrote:
> That works for me
> --
> dIon Gillard, Multitask Consulting
> Work: http://www.multitask.com.au
> Developers: http://adslgateway.multitask.com.au/developers
>
>
> Ryan Lubke <Ry...@Sun.COM> wrote on 07/12/2002 01:00:12 AM:
>
> > 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 <Ry...@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:
> > > <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>