简体   繁体   English

Why AMAZON.COM and amazon.com both works as a url althought we know that URL is case sensitive?

[英]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.

相关问题 如何为特定商品Amazon.com进行REST调用? - How do I make REST calls for a particular Item Amazon.com? 比较网址区分大小写 - Compare Url case sensitive 为什么Amazon Web Services的登录页面网址很长 - Why does Amazon Web Services have a lengthy url for login page URL中的UTF8组件,是否区分大小写? - UTF8 component in URL, should it be case sensitive? 为什么http://google.com/a/bogus/url不能重定向到404 URL,为什么首选此URL? - Why does http://google.com/a/bogus/url not redirect to a 404 URL, and why is this preferred? iOS-NSDataDetector:为什么缺少“ .com”(http:// google)的URL返回为有效URL? - iOS - NSDataDetector: Why does url missing '.com' (http://google) return as valid URL? nodejs-如果是yahoo.com,则request.get(url)返回二进制数据 - nodejs - request.get(url) returning binary data in case of yahoo.com 如果“.com”后面有一个点,它是一个有效的网址吗? - If there exists a dot after “.com”, is it a valid URL? 如何在产品URL中使用多个ASIN搜索Amazon - How to Search Amazon using Multiple ASIN in Product URL 为什么cookie路径区分大小写? - Why are cookie paths case sensitive?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM