Is the protocol name in URLs case sensitive?

case-sensitive, url

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.

Problem

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.

Original source