URL中的协议名称是否区分大小写? [英] Is the protocol name in URLs case sensitive?
本文介绍了URL中的协议名称是否区分大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hTTp://foo.com
是否与 Http://foo.COM
相同?
我知道主机名不敏感,但是路径名和查询部分是敏感的。
解决方案
该方案不区分大小写: http://tools.ietf.org/ html / rfc3986#section-3.1
主机名也不区分大小写,因为它是DNS。
其余的区分大小写。
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.
解决方案
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.
这篇关于URL中的协议名称是否区分大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文