简体   繁体   中英

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

 foo://example.com:8042/over/there?name=ferret#nose \_/ \______________/\_________/ \_________/ \__/ | | | | | scheme authority path query fragment

The above is from the URI spec .

Amazon.com is the host name, part of the authority, not part of the case-sensitive path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM