Re: URI path starting with "//"

On 2013-02-01 20:07, Bjoern Hoehrmann wrote:
> * 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

Indeed. This appears to be an edge-case, but still...

Roy, do you recall whether there's a reason why we would want to rule 
out a path starting with "//"?

Best regards, Julian

Received on Friday, 1 February 2013 20:35:25 UTC