Is the protocol name in URLs case sensitive?

Lothar picture Lothar · Jan 27, 2010 · Viewed 7.4k times · Source

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.

Answer

Tobu picture Tobu · Jan 27, 2010

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.