W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > September to December 1999

Re: Host header issue

From: Geoff Macartney <g.macartney@apion-tss.com>
Date: Thu, 30 Sep 1999 14:21:17 +0100
Message-ID: <37F363CD.87C3D72@apion-tss.com>
To: http-wg@hplb.hpl.hp.com
In the recent discussion on this topic I haven't seen a query on the
text in section 14.23 "Host"  of RFC 2616 which says :

  "If the requested URI does not include an Internet host
   name for the service being requested, then the Host header field MUST

   be given with an empty value. "

It is the "with an empty value" that confuses me - this seems to
contradict what is written in section 5.1.2:
  "The most common form of Request-URI is that used to identify a
   resource on an origin server or gateway. In this case the absolute
   path of the URI MUST be transmitted (see section 3.2.1, abs_path) as
   the Request-URI, and the network location of the URI (authority) MUST

   be transmitted in a Host header field. "
       GET /pub/WWW/TheProject.html HTTP/1.1
       Host: www.w3.org

If the text in 14.23 were followed you'd get

       GET /pub/WWW/TheProject.html HTTP/1.1

which would surely be wrong. My understanding from the spec and this
discussion thread is that it should be possible to identify the host,
whether by a relative URI plus valid Host value or by an absolute URI
(plus redundant Host header, which I suppose you could legitimately
allow to have an empty value in this case?)

Is this one for the errata?

Geoff Macartney
Received on Thursday, 30 September 1999 14:21:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:16:34 UTC