Prabhu Raja
What is the difference between URL and URI?
Posted by Prabhu Raja in .Net | ASP.NET on Nov 19, 2011
0
Do you know the answer for this question? Post it below.
Guest

So what is the difference between URI and URL? It's not as clear cut as I would like, but here's my stab at it:

A URI is an identifier for some resource, but a URL gives you specific information as to obtain that resource. A URI is a URL and as one commenter pointed out, it is now considered incorrect to use URL when describing applications. Generally, if the URL describes both the location and name of a resource, the term to use is URI. Since this is generally the case most of us encounter everyday, URI is the correct term.bca final year projects

Posted by demanwyngaert on Dec 19, 2011

URI:

Uniform Resource Identifier (URI) is a string of characters used to identify a name or a resource on the Internet. Such identification enables interaction with representations of the resource over a network (typically the World Wide Web) using specific protocols. Schemes specifying a concrete syntax and associated protocols define each URI.

An URI identifies a resource either by location, or a name, or both. A URI has two specializations known as URL and URN.

URL:

In computing, a Uniform Resource Locator (URL) is a subset of the Uniform Resource Identifier (URI) that specifies where an identified resource is available and the mechanism for retrieving it.

URL defines how the resource can be obtained. It does not have to be HTTP URL (http://), a URL can also be (ftp://) or (smb://)

Posted by Vikrant Jadhav on Dec 16, 2011

An Uniform Resource Locator (URL) is the term used to identify an Internet resource, and can be specified in a single line of text.
An Uniform Resource Identifier (URI) is used by a browser to identify a single document, and it too can be specified in a single line of text.


URL http://www.pierobon.org/iis/review1.htm
URI  http://www.pierobon.org/iis/review1.htm.html#one

Posted by Pankaj Rana on Dec 08, 2011

A URI can be further classified as a locator, a name, or both. The term "Uniform Resource Locator" (URL) refers to the subset of URI that identify resources via a representation of their primary access mechanism (e.g., their network "location"), rather than identifying the resource by name or by some other attribute(s) of that resource. The term "Uniform Resource Name" (URN) refers to the subset of URI that are required to remain globally unique and persistent even when the resource ceases to exist or becomes unavailable.

So any URL is a URI, but some URIs aren't URLs, they're URNs instead. Except the ones which are both URNs and URLs.

thanks.....

 

Posted by Vikas Mishra on Nov 23, 2011

URI - Uniform Resource Identifier: it's a string and its responsibility is to identify a resource by meta-information. It gives information about only one resource.

URL - Uniform Resource Locator: identifies the resource on the net and tells it is obtainable using what protocols.

Posted by Prabhu Raja on Nov 19, 2011
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.