Description of URI, URL, urn

Source: Internet
Author: User
Tags rfc

Note: 1. Only from the perspective of HTTP (Hypertext Transfer portocol), there is no language-level class library involved.

2. The following are referred to in the "HTTP Authoritative guide" book.

First, the World Wide Web content is stored on the Web server. The Web server uses the HTTP protocol, so it is often referred to as an HTTP server. These HTTP servers store data from the Internet and provide the data if the HTTP client makes a request. The client sends an HTTP request to the server, and the server echoes the requested data in the HTTP response, see:

The HTTP request requests a resource from the Web server, which means that the Web server is the host of the Web resource (Web Resource). So the variety of web resources, such as: text files, Word files, audio, video and so on static resources and many dynamic resources.

So the next step is to come up with our problem, said the Web client to the Web server to request resources, the request is always stated, to request which Web server and the Web server above the resource address.

Two, URI, URL, URN each Web server resource has a name, so the client can explain what resources they are interested in. The server resource name is called the Uniform Resource Identifier (Uniform Resource Identifier,uri).      URIs, like postal addresses on the Internet, uniquely identify and locate information resources around the world. Shows how the URI instructs the HTTP protocol to access the picture resource on the Joe Store server. Given the uri,http, you can parse the object. there are two forms of URIs, called URLs and urns, respectively.

The Uniform Resource Locator (URL) is the most common form of resource identifiers. A URL describes a specific location of a resource on a particular server. They can clearly explain how to get resources from a precise, fixed location.

Most URLs follow a standard format, which consists of three parts.

    1. The first part of the URL is called Scheme, which describes the type of protocol used to access the resource. This section is usually the HTTP protocol (//).
    2. The second part gives the server's Internet address (for example,
    3. The remainder specifies a resource (for example,/specials/saw-blade.gif) on the Web server.
Now, almost all URIs are URLs.

The second form of a URI is a Uniform Resource name (URN). A URN is used as a unique name for a specific content, regardless of where the current resource is located. With these location-independent urns, you can move resources around. With a urn, you can also access resources through multiple network access protocols with the same name. For example, regardless of where the Internet standard document RFC 2,141 is located (and can even be copied to multiple places), you can name it with the following urn: urn:ietf:rfc:2141
The URN is still in the experimental phase and is not yet in wide use. To work more effectively, the urn needs a support architecture to parse the location of the resource.

Description of URI, URL, urn

Related Article

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.