difference between url and uri code example

Example 1: URL vs URI

URI stands for Uniform Resource Identifier. It is a string of
characters designed for exact identification of resources
and extensibility by the URI scheme. 
The purpose of a URI is to locate a resource(s) on the server hosting 
of the web service.

A URI’s format is <protocol>://<servicename>/<ResourceType>/<ResourceID>.

A URL is the most common type of (URI). URLs are essential to navigating the 
internet.RLs consist of multiple parts -- including a protocol and domain name 
that tell a web browser how and where to retrieve a resource.

Example 2: difference between URI and URL

The terms “URI” and “URL” are often used interchangeably,
 but they are not exactly the same.

1.A URI is an identifier of a specific resource. Like a page,
 or book, or a document.
2.A URL is special type of identifier that also tells you how to 
  access it, such as HTTPs, FTP, etc.—like https://www.google.com.
3.If the protocol (https, ftp, etc.) is either present or implied for
 a domain, you should call it a URL—even though it’s also a URI.

Tags:

Misc Example