wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 1844

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
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
 
subject: difference between URL and URI
 
Similar Threads
Difference between a URL and URI
URI vs URL
URI and URL
What is the difference between URI,URL and URN
URN,URI and URL