W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2013

URI path starting with "//"

From: Zhong Yu <zhong.j.yu@gmail.com>
Date: Fri, 1 Feb 2013 12:37:38 -0600
Message-ID: <CACuKZqHi6gBmd-khrW-_7febxoh-pNd4hzfyA4EgRNKQ4ivWog@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
If user clicks a URL http://example.com//abc, the browser should send

    GET //abc HTTP/1.1
    Host: example.com

However the latest bis draft seems to forbid "origin-form" to start with "//"

http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-5.3

    origin-form    = path-absolute [ "?" query ]

http://tools.ietf.org/html/rfc3986#section-3.3

    path-absolute   ; begins with "/" but not "//"

I couldn't find anything in RFC 3986 that accurately describe the path
part that we really want, which should be

    path-xxx = "/" *( "/" / pchar )

HTTP probably need to define this term. It'll also help people to
finally refer to this thingy with a proper name.

Zhong Yu
Received on Friday, 1 February 2013 18:38:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 February 2013 18:38:12 GMT