What is the difference between a uri and a url?

Showing Answers 1 - 15 of 15 Answers

chaitu.kkd

  • Nov 11th, 2005
 

uri--uniform resource identifier,

url--uniform resource locator,

uri provides only the name of the resource, like in web.xml, in url-pattern you would be specifying the uri for identification of the servelt when the request is made in the url.

url gives the path of the resource where it was located.url identifies the path where the uri is located.

  Was this answer useful?  Yes

Anand

  • Mar 6th, 2006
 

URI and URL both specify the resource. URL in addition also tells how to retrive that resource(protocol: http, ftp)

  Was this answer useful?  Yes

Amar

  • May 30th, 2006
 

The only difference is that

   URI is only for identifying the resource.

URL is for locating/ finding resources.URL will contain request to URI i.e URI is a part of URL

  Was this answer useful?  Yes

aumesh

  • Jul 3rd, 2008
 

URI - Uniform Resource Identifier

URL - Uniform Resource Locator

A URI _identifies_ a resource by meta-information of any kind.

A URL _locates_ a resource on the net, which means if you have
a URL and the appropriate protocol you can retrieve the resource.

One characteristic of a URI is, that it gives information about
exactly one resource. Another is there can be more than one URI
describing the same resource.

That was the theory, here is an example:

URI: <URL:http://www.w3.org>
URI: <URL:http://www.w3.org/>
URL: http://www.w3.org/pub/WWW/>

Url is used by Client to send request to the server.it contain the path (domain name of the server) whereas Uri is used by server to locate the  requested resource on the server machine. Port no. are used to provide interface between client request and  server responce.

  Was this answer useful?  Yes

The idea is that a URL is a mechanical link to a resource's location, where it can be downloaded. For this reason, a URL contains a hostname and a local part, all of which can be resolved anywhere on the Internet.

What a URN tries to do is different. It tries to give a description of a resource without actually pointing at it. For example:

urn:isbn:90-365-17273

This is the URN for my PhD thesis, but it does not give you a clue where you could get it. The idea is that you need resolution software to come to that. The word isbn is a so-called URN-space, and it has been registered formally. There are also non-global URN spaces, they start with an x- prefix.

URI is merely the possibly overlapping union of strings that are a URL or a URN.

  Was this answer useful?  Yes

A URI identifies a resource either by location, or a name, or both. Whereas A URL is a specialization of URI that defines the network location of a specific resource.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions