This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Servlets and the fly likes difference between  URL and URI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between  URL and URI" Watch "difference between  URL and URI" New topic
Author

difference between URL and URI

nivas yl
Greenhorn

Joined: Jan 02, 2007
Posts: 2
Hi friends,
can you please tell me what is the difference between URL and URI.

bye..
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
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



RAGHU<br /> <br />"When the going gets tough, the tough get going"
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1846

URI: is a string that identifies any resource. Indentifying the resource does not necessarily mean we can retrieve it. URI is a superset of URL and URN.
files/reports/marketing/report.html

URL: URI that specify a common Internet protocol such as HTTP or FTP are also called URLs. URL is an informal term an is not used in technical specifications.
http://www.foo.com/files/reports/marketing/report.html

URN: A URN is an identifier the uniquely indentifies a resource but does not specify how to access that resource.
ISBN: 1-930110-59-6


Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between URL and URI