[英]Why AMAZON.COM and amazon.com both works as a url althought we know that URL is case sensitive?
These lines are from a book:这些行来自一本书:
The path of a URL is case sensitive, meaning http://food.com/Broccoli is a different resource than http://food.com/broccoli , because one uses an uppercase B and one uses a lowercase b URL 的路径区分大小写,这意味着http://food.com/Broccoli是与http://food.com/broccoli不同的资源,因为其中一个使用小写字母 b
foo://example.com:8042/over/there?name=ferret#nose \_/ \______________/\_________/ \_________/ \__/ | | | | | scheme authority path query fragment
The above is from the URI spec .以上来自URI 规范。
Amazon.com
is the host name, part of the authority, not part of the case-sensitive path. Amazon.com
是主机名,属于权限,不属于区分大小写的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.