Is hTTp://foo.com
the same as Http://foo.COM
?
I know that hostnames are not sensitive but path names and query parts are sensitive.
Is hTTp://foo.com
the same as Http://foo.COM
?
I know that hostnames are not sensitive but path names and query parts are sensitive.
Well this document (for some HTML specification) says:
And RFC1738 (Uniform Resource Locators (URL)) says (note, a URL has the form
<scheme>:<scheme-specific-part>
):So only lowercase characters are allowed, but uppercase characters are tolerated.
Btw Safari automatically converts to lowercase characters.
Citing RFC3986:
The scheme is case-insensitive: http://tools.ietf.org/html/rfc3986#section-3.1
The hostname is also case-insensitive, since it's DNS.
The rest is case sensitive.
It is not sensitive in practice but in theory only lower case is allowed.
From RFC 1738