当前位置:网站首页>The difference between URI and URL

The difference between URI and URL

2022-07-06 16:58:00 Xiaoxiamo

URI (Uniform Resource Identifier): Uniform resource identifier

If a resource can be uniquely identified under certain rules , It can be called URI
such as , If the country does not allow the repetition of names , that , Someone called “ Zhang San ”, Someone called “ Zhang Sanchong 2020”, At this time, these two names are unified resource identifiers , Here's the point , No matter what rules are used , as long as Can uniquely identify a resource , Then it is URI, Another example , In the case of repeated names , The global village \ China \ Sichuan Province \ Chengdu \ Men's College \ Department of Computer Science \2020 level \ Class one \ A no. \ Handsome than \ Zhang San , Can uniquely identify a person , Then it can also be called URI

URL (Uniform Resource Locator): Uniform resource locator

If a resource can be uniquely identified under the address location rules , It can be called URL,( It can be regarded as the rule of address URI)
therefore The global village \ China \ Sichuan Province \ Chengdu \ Men's College \ Department of Computer Science \2020 level \ Class one \ A no. \ Handsome than \ Zhang San yes URL, Here you will understand ,“ The rules ” Ten million , There are just a lot of addresses “ The rules ” One of the , therefore :URL yes URI Subset

go back to Web On :

  • If there is a unique identifier UUID, We name a picture :ba9bb8a6-1c58-465c-95a7-b2f107eb2110.jpg, The name is URI still URL, Certainly URI, Unify resources sign operator , The key is sign , Yes location Do you ? No,
  • If it is csdn A picture on the homepage ?https://blog.csdn.net/ba9bb8a6-1c58-465c-95a7-b2f107eb2110.jpg, yes URI still URL? Is it marked ? Marked , Have you positioned the logo ? Positioning marks , therefore , It is URI It's also URL

summary

  • URI (Uniform Resource Identifier): Uniform resource identifier , emphasize Unique identification resources , No matter what rules are used
  • URL (Uniform Resource Locator): Uniform resource locator , emphasize Locate the unique identifier , Uniquely identify resources with locating rules
  • URI contain URL
原网站

版权声明
本文为[Xiaoxiamo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131312513797.html