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

Re: URI path starting with "//"

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 01 Feb 2013 20:07:57 +0100
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <f64og85ot2qe13optqqqp9nuvps8mgcnsp@hive.bjoern.hoehrmann.de>
* Julian Reschke wrote:
>On 2013-02-01 19:37, Zhong Yu wrote:
>> 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 "//"
>> ...
>
>Is this a valid URI?

http://www.websitedev.de/temp/rfc3986-check.html.gz says yes. Per 3986:

   URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
   hier-part     = "//" authority path-abempty
   ...
   path-abempty  = *( "/" segment )
   ...
   segment       = *pchar
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 1 February 2013 19:08:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 February 2013 19:08:25 GMT