Wed Mar 03 2021
Recently, I have been reading a lot of network-related web documents or books, and I write a posting to organize it once because it is so confusing to call it a URL in some parts and URI in others. When looking at it without knowing it, it seems to be similar in shape, but I wonder what the difference is. From now on, let's find out the difference clearly.
Uniform Resource Identifier (URI)
 consists of a string of characters used to identify or name a resource on the Internet
Uniform Resource Locator (URL)
 colloquially termed a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it.
https://example.io is a URL and URI because it represents a server named https://example.io.
https://example.io/images is a URL and URI because it refers to the location of resources on the network called images on the example.io server.
https://example.io/images/dog.jpeg is a URL and URI because it points to dog.jpeg under the images directory on the example.io server.
For https://example.io/user/123, the URL is https://example.io/user and includes identifier 123 to reach the desired information, which is a URI. In other words, it is a URI but not a URL.
https://example.io/profile?id=11 is also a URL to https://example.io/profile, but includes an identifier ( ?id=11) to reach the desired information, which is a URI. In other words, it is a URI but not a URL.