Is the protocol name in URLs case sensitive?

后端 未结 4 727
天命终不由人
天命终不由人 2020-12-18 18:06

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.

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 18:27

    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.

提交回复
热议问题