URL and Uri differences and links

Source: Internet
Author: User

Uri:universal Resource Identifier, generic resource identifier;

  Url:uniform Resource Locator, the Uniform Resource Locator;    where the URL is a subset of the URI.   The basic form of an address on the web is a URI, which represents the Uniform Resource identifier. There are two forms of:  URLs: the most common form of URIs today is ubiquitous URLs or uniform resource locators. The     URI is a simple string that identifies a resource in a uniform (standardized) way.    Typically, this string begins with the scheme (the identifier of the namespace that names the URI-a set of related names), and the syntax is as follows:  [scheme:] scheme-specific-part  The URI begins with a scheme and a colon. Scheme starts with uppercase/lowercase letters, followed by empty or followed by more uppercase/lowercase letters, numbers, plus signs, minus and dot numbers. The colon separates scheme from Scheme-specific-part, and the syntax and semantics of scheme-specific-part (meaning) are determined by the namespace of the URI. As the following example:  HTTP://WWW.CNN shun Baidu. Shun Baidu com, where HTTP is scheme,//www.cnn shun Baidu. Shun Baidu com is scheme-specific-part, And its scheme is separated from the scheme-specific-part by a colon. The   URI has absolute and relative points, and the absolute URI refers to the URI that begins with scheme (followed by a colon). The aforementioned http://www.cnn shun Baidu. com is an example of an absolute URI, other examples and mailto:[email protected] avoid Baidu Avajeff shun Baidu. com, news shun Baidu: Comp.lang shun Baidu. Java.help and Xyz://whatever. You can think of an absolute URI as referencing a resource in a way that is not dependent on the environment in which the identifier appears. If you use the file system as an analogy, an absolute URI is similar to the path of a file starting from the root directory.   Unlike an absolute URI, a relative URI is not a URI that begins with scheme (followed by a colon). An example of this is articles/articles.html. You can think of a relative URI as referencing a resource in a way that relies on the environment in which the identifier appears. If the file system is used for classThe relative URI is similar to the file path starting from the current directory. The   URL is the abbreviation for Uniform Resource location, translated as "Uniform Resource Locator." In layman's words, URLs are strings used on the Internet to describe information resources, mainly used in various WWW client programs and server programs, especially the famous mosaic. URLs can be used in a unified format to describe various information resources, including files, server addresses and directories. At present, the biggest disadvantage of   is that when the storage location of information resources changes, the URL must be changed accordingly. So people are looking at new ways of representing information resources, such as: URIs (Universal Resource Identifier) that is, "Common resource Identifiers", "Uniform Resource Names" and URC (Uniform Resource citation), which are "Uniform resource references" such as The   URI is still under further study. The direction of research is to make up for the current shortcomings of URLs.

Differences and connections between URLs and URIs

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: info-contact@alibabacloud.com 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.