Search code examples
urlcase-sensitive

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.


Solution

  • The scheme is case-insensitive: https://www.rfc-editor.org/rfc/rfc3986#section-3.1

    The hostname is also case-insensitive, since it's DNS.

    The rest is case sensitive.