In the web domain, we are familiar with three professional vocabulary uri,url,urn, for these three words we may know its original intention, its relationship with each other, but for Uri,urn there is always a layer of hazy sense, because the URI is
There are various ways to get path or Uri,url in a Web application, assuming a Web page access address:Http://localhost:8080/tradeload/TestServletWeb Application Context:/tradeloadEach path is identified as follows:Java code
What are Uri, URL, and urn?
Uri (Uniform Resource identify), URL (Uniform resource location), and urn (Uniform Resource Name)Is a standard way to identify, locate, and name resources on the Internet; Url, urn is a subset of URIs.
The URI
You are familiar with URLs, and the other two words are unfamiliar. Uri, URL, and urn are the standard way to identify, locate, and name resources on the Internet.
In 1989, Tim Berners-Lee invented the Internet (World Wide Web ). WWW is regarded as
There are various ways to get path or Uri,url in a Web application, assuming a Web page access address:Http://localhost:8080/tradeload/TestServletWeb Application Context:/tradeloadEach path is identified as follows:Request.getcontextpath ()
Uri,url,urnAs can be seen from the above picture, there are three different concepts Uri,url,urn. The best way to discuss such a problem is to go back to the point where we have collected some information in RFC 3986:uniform Resource Identifier
A: What is Uri,url,urn?Uri:uniform Resource Identifier, a Uniform Resource identifier, is a string used to represent the name of a resource on the Internet format:http://www.xxx.com:80/home/index.html?page=2Url:uniform Resource Locator, a Uniform
First, prefaceThe past has been confused about what is the URI what is the URL, it is time to make a good understanding of them! This article as a study note, in order to query later, if there are flaws please correct me!Second, from the URI.1.
Uri-url-urn differencesURI (Uniform Resource Identifier) Uniform Resource identifier, used to uniquely identify a resourceURL (Uniform Resource Locator) a Uniform Resource Locator, which is a specific URI that the URL can use to identify a resource
URI Uniform Resource Identifier, a Uniform resource identifier, used to uniquely identify a resourceURL Uniform Resource Locator, a unified resource Locator, is a specific URI that the URL can use to identify a resource and also how to locate the
Let's start with an example to give you a basic idea of these three nouns:1?? Ftp://ftp.is.co.za/rfc/rfc1808.txt2?? Http://www.cnblogs.com/nods/p/8985322.html#positionThe two most common network addresses are listed above, and the two addresses are
java.netClass URI
Rr.
Extends Object implements comparable
Represents a Uniform Resource identifier (URI) reference.
In addition to some of the nuances mentioned below, instances of this class represent a URI reference, which is defined in the
Today, when writing code, you encounter a problem:
How do I get "/images/job_logo.gif" from the string "Http://job.cnblogs.com/images/job_logo.gif"?
The solution to this problem requires:
1. Only the APIs in the. NET class library can be invoked;
URI, URL, and URN differences and connections URI: Uniform Resource Identifier, unified Resource Identifier;
URL: Uniform Resource Locator, which is a unified Resource Locator;
URN: Uniform Resource Name.
URL and URN are the subset of URIs.
The
First , the URI, which is the Uniform Resource identifier, is the Uniform Resource identifier used to uniquely identify a resource. The URL is a Uniform Resource Locator, a Uniform Resource locator, which is a specific URI that the URL can use to
1, URI, is Uniform Resource Identifier, Uniform Resource identifier, used to uniquely identify a resource.2, RL is Uniform Resource Locator, unified resource Locator, it is a specific URI, that is, the URL can be used to identify a resource, but
Li Wu:Learn to think more, honouring teachers save Thanksgiving. Leaf See Root 321, rivers with one.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercise strong body and mind, Prudential advised and the line
Uri is a uniform resource Descriptor (Uniform Resource Identifier). It is a mechanism used to describe resources on the Internet. We know that each web server resource has a name, so that other clients can reference and obtain the resource when they
This example will show you how to escape and un-escape a value to be encoded in a URI and within HTML.
Require 'cgi' # Escapename = "Ruby? " Value = "Yes" URL = "Http://example.com /? "+ CGI. Escape (name) + '=' + CGI. Escape (value) +" & Var = t" #
URI: Uniform Resource Identifier, which is a unified Resource Identifier;
URL: Uniform Resource Locator, which is a unified Resource Locator;
URN: Uniform Resource Name.
URL and URN are the subset of URIs.
The basic form of the address on the Web is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.