Before going into URL and URI,
you need to know some background. Do you ever thought about, who decides what is URL? and what is URI? or who is the authority for URL, URI and such naming conventions?
There are two separate bodies W3C and IETF. The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. The specifications for URI and URL are defined by W3C.
It was founded and headed by Sir Tim Berners-Lee. He is one of the greatest scientist living now. He created this www model of server and client architecture, a web server serving web pages through network and client browsers reading it. He did it first when he was with CERN. He created the world’s first web page http://info.cern.ch/ . He was also in HTML 2.0 working group of IETF. So it is very appropriate for W3C to define URI and URL.
Internet Engineering Task Force (IETF) is an open international community working on Internet related standards. In general it addresses issues of Internet protocols.
In particular W3C defines the web, html specifications and related information. IETF defines IP, TCP, or DNS, for security at any of these levels; with SMTP or NNTP protocols.
So the stake for definition for URI and URL is with W3C. But as there is only a thin line between these organisation’s work they tend to cross each other. In some place IETF gives dissimilar definition for URL and URI.
If you read through the huge volume of journals available in web for this topic, you can sense that experts :-( are using URI and URL synonymously. Which is causing all these confusion among the web community about URI, URL and URN.
An URI identifies a resource. It is a locator. It includes a URI scheme, authority, path, query and fragment by syntax. For example, http: is a URI scheme.
Syntax of URI based on RFC 3986
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/ \ / \
urn:example:animal:ferret:nose
The term “Uniform Resource Locator” (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network “location”).
The term “Uniform Resource Name” (URN) is used to identify a resource independent of its location. Example urn:ISBN:1-23-432536-5
Whenever you have a doubt that, whether something is a URL or URI then use URI as a term to identify it. Since URI is a super set of URL.
Comments are closed for "URI And URL Difference".
thank you very much to give me this url. it is very usefull to our students i will give this url to all of my students.
Thank u for this info….
thanks it is realy usefull 4 student
thank u…………
Hi,
This URL is indeed wonderful as I came to know about one of the fact about the first web Page.
Will keep looking for more updates in the future like these.
Regards
Hiten
thnx
Thanks a lot Joseph my confusion about URL,URI,URN
has been cleared after going thro this blog
Keep up the good work!!!
you are a genious….i have never seen such kind of easy understandable site..plz plz update info in your blog..plz plz
Well said.. keep up the good work. Thanks
But these two things are not explained clearly…. i have still confusing both uri and url…. please clarify this doubt….
Will u plz clarify this in deep
b.getBMenthod()
Thanks for giving information.try to give briefly information like this.
what is URL,purpose of it?
what is URI,purpose of it?
whats the diff of them?
URL URI
1.
2.
3.
Thanks & Regards
k.sainath
This page is easy understood for our students. It have very simply answer. Please diffenciate with table format.
thanku shakthimaan
thank u shakthimaaan
thanks dis info
its very helpful
Thanks Joe for explaining the terms clearly in very simple and easy ways, clear my doubts.
Sir URI stands for uniform resource identifier..
Hi Joe,
Your information is really usefull.I want to know about how post method sends the data to the server in request message body.please help me in this regard.
Hi Joe,
I was wondering if you would consider showing tutorial material on Java for Android. Clearly,there is a plethora of material on the Internet… but not necessarily high-quality material.
Recently I have been working on Android and I will try my best to post some articles on it soon.
Hi,
Can you say an example for URI & URL
Thsnks for giving this info about uri and url aswellas urn.I got fully confident what is what on that but a small doubt on that is uri is only before location resource.right? then Is url a after uri scheme location commes under url.
liitle but bit satisfactory
it is so nic. thank u
good decription.Thanks
thanks
thanks
thank u
nice explanation of uri and url
Hi Joe
Nice explanation difference between URI and URL.
Nageshwar
Hi Joe
Nice explanation difference between URI and URL.
Nageshwar
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/ \ / \
urn:example:animal:ferret:nose
SORRY SIR BUT I DINT UNDERSTAND THIS CSAN U PLEASE HELP ME WITH THIS I NEED TO GIVE A PRESENTATION IN COLLEGE! NEED TO EXPLAIN THE URI CONCEPT!
Thanks for the info and i need more and more
Joe, Will u please take some simple example to differentiate URI, URL and URN?
Thanks in advance.
Can u please explain it more through example…
kindly mail me
yes, it’s nice.
nice.. but give better example for URL and URN. I mean one realtime website example
URI- Uniform resource Identifier is a superset of URL and URN
e.g.- files/sales/report.html
is not a URL because it does not specify how to retrieve the resource.
URL – specifies how to retrieve the resource
URN- e.g. ISBN:1-9211009-59 is a URN because it uniquely identifies this book.
thanx
Really Nice one. It helped me.
Thanks
excellent man, u have done it…… great job….
@Divya I love your reply that make sense asking the right questions folks baga chepparu
If URI is super set of URL then how come it got this:
URI : /XXX/abc.do
URL : http://localhost:9083/XXX/abc.do
When i write the below code:
System.out.println(“URI : “+ httpRequestObj.getRequestURI());
System.out.println(“URL : “+ httpRequestObj.getRequestURL());
Please explain sir. Thanks in advance.
Hi
Thank you Joe, really i have impressed.
Thanks
Bhaskar
Really knowledgable site
thnx its really helpfull
Thank you very much for such a great info
thanks,it helped me a lot.
pls give answer to above comment of Roma it will also help me
pls give answer to above comment of Roma it will also help me
thank you very much !!you let me know that difference between the URI and URL……
better explain with an example..
like
url=
uri=
urn=
an example always explain more, than no.of pages
thank yu sir for providing information
thank u Mr.Joe it is more helpful to me can u pls provide like ppts and digramatically with examples in prgm,real life also it is easly helpful to us
pls kindly mail to me joe with examples and ppts
thank you very much sir !!
NIce explanation
thanks Joe great work
Hi Joe,
Nice explanation and examples.
Could you please reffer me the the book/source of information.
Thanks,
Neelkant
thanks alot it clearfies my problm
thanks alottttt
can i call a uri as a interface………….
thanks
you didnot give the example to identify the url ,uri and urn
Respected Sir,
How to run more servlet program without changing web.xml file and also how to set path permanently to run servlet?
Fantastic … Can you please explain URN in details?
I felt chills when I read about Sir Tim Berners-Lee. Good info job. Thnx
Thanks a lot….
Excellent!!! Information Joe. Thank you
great sir………
Nice… but it could be even better with more examples
Nice explanation Mr.Joe but it will be more clear if done along with some examples.
useful article … thanks a lot…
Good.But some confusion