Is the protocol name in URLs case 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. 回答1: 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. 回答2: It is not sensitive in practice but in theory only lower case is allowed. From RFC 1738 2.1. The main parts of URLs A full BNF description of the URL syntax is given in Section 5. In general,