Re: HTTP URI in the form of "http://example.com?query"

* Zhong Yu wrote:
>The question is whether this is a valid HTTP URI:
>
>    http://example.com?query
>
>According to RFC2616, it is invalid, a slash before the question mark
>is mandatory(i.e. http://example.com/?query)

That may well be unintentional, RFC 2396 certainly allows for the path
to be omitted and RFC 2616 talks about an "empty abs_path" as opposed to
an omitted abs_path in section 3.2.3; RFC 1945 does the same. RFC 1808
does not allow it though, so quite possibly RFC 2616 failed to account
for the change between RFC 1808 and RFC 2396.
-- 
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 Tuesday, 4 June 2013 10:08:29 UTC