GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Certification  >  Sun
Go To First  |  Previous Question  |  Next Question 
 Sun  |  Question 7 of 38    Print  
What is the difference between a uri and a url?

  
Total Answers and Comments: 6 Last Update: October 20, 2008     Asked by: Suresh 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: aumesh
 
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/>

Above answer was rated as good by the following members:
abhijeet srivastava
November 11, 2005 06:47:50   
chaitu.kkd Member Since: November 2005   Contribution: 1    

RE: What is the difference between a uri and a url?

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.


 
Is this answer useful? Yes | No
March 06, 2006 12:01:31   
Anand        

RE: What is the difference between a uri and a url?

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


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 30, 2006 02:17:50   
Amar        

RE: What is the difference between a uri and a url?

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


 
Is this answer useful? Yes | No
July 03, 2008 01:36:54   
aumesh Member Since: June 2008   Contribution: 1    

RE: What is the difference between a uri and a url?
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/>

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 11, 2008 01:08:17   
abhijeet srivastava Member Since: March 2008   Contribution: 3    

RE: What is the difference between a uri and a url?
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.
 
Is this answer useful? Yes | No
October 19, 2008 10:04:46   
jpjitendrapal Member Since: October 2008   Contribution: 1    

RE: What is the difference between a uri and a url?

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.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape