1.

What are Resources and URIs?

Answer»

URI is a string of characters used to identify a resource on the INTERNET either by location or by name, or by both. URI stands for Uniform Resource Identifier.  

URI is used to identify resources, for example, in the real world assume there is a person named “TEST Person” who lives in “403, Test City, World”. We can find that person by address or by name or by both. 

URI can be categorized into 2 as URL and URN 

  • URN: Uniform Resource Name 
  • URL: Uniform Resource Locator 

URI is used to send requests to the server. This can be ACHIEVED with the help of both URN and URL. Using URN is inefficient, as there can be many resources with the same name. So the most widely used method is URL. URL consists of two required components The Protocol & The Domain. 

Look at the FOLLOWING URL: 

http://www.testname.net/asp-net-webapi

Here the red colored part is the protocol and the BLACK colored part is the domain, other parts are optional. It may contain the port/path/query strings/fragments. 



Discussion

No Comment Found