W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2010

RE: http URI grammar

From: Eric Lawrence <ericlaw@exchange.microsoft.com>
Date: Fri, 6 Aug 2010 18:32:18 +0000
To: Yves Lafon <ylafon@w3.org>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <479CAD406474484E8FA0E39E694732C0105F4D39@DF-M14-01.exchange.corp.microsoft.com>
>http://www.example.com?foo

In my experience, real world sites will use URLs like this from time to time, and as far as I know, all major browsers work with such URLs.

-Eric

-----Original Message-----
From: ietf-http-wg-request@w3.org [mailto:ietf-http-wg-request@w3.org] On Behalf Of Yves Lafon
Sent: Wednesday, August 04, 2010 7:45 AM
To: ietf-http-wg@w3.org
Subject: http URI grammar

In rfc2616, the production was:
    http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]

from 2396bis:
abs_path became path-absolute in 2396bis

    path          = path-abempty    ; begins with "/" or is empty
                  / path-absolute   ; begins with "/" but not "//"
                  / path-noscheme   ; begins with a non-colon segment
                  / path-rootless   ; begins with a segment
                  / path-empty      ; zero characters

    path-abempty  = *( "/" segment )
    path-absolute = "/" [ segment-nz *( "/" segment ) ]

    segment       = *pchar
    segment-nz    = 1*pchar

The current definition in -11 [1] is

      http-URI = "http:" "//" authority path-abempty [ "?" query ]

One difference is that httpbis now allows
* http://www.example.com//foo
* http://www.example.com
as valid URIs (which is fine), but also allows http://www.example.com?foo is that desired? Should it be changed to

      http-URI = "http:" "//" authority ( path-empty /
                                          1*( "/" segment) [ "?" query ] ) or
      http-URI = "http:" "//" authority ( path-empty /
                                          path-absolute [ "?" query ] )

[1] http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-11#section-2.6.1

--
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Friday, 6 August 2010 18:32:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:24 GMT