URL and Uri differences and links

Source: Internet
Author: User

Definition:

The URI is a string format specification and does not specify its purpose
A URL is a specification of a resource's location, including a naming scheme for accessing resources, a host name for a resource, and the name of the resource itself, represented by a path.

A URI is a lower-level abstraction of a URL, a string literal standard. That is, the URI belongs to the parent class, and the URL belongs to the subclass of the URI. A URL is a subset of the URI.

difference:

The URI represents the path to the requesting server and defines such a resource. The URL also shows how to access the resource (HTTP//)

Contact:

A URL is a specific URI that uniquely identifies a resource and provides information to locate the resource. A URI is a semantic abstraction that can be absolute or relative, and the URL must provide enough information to locate it, so it is absolute, and the usual relative URL is for another absolute URL, which is essentially absolute.

Note: the absolute (absolute) here refers to the inclusion scheme, while the relative (relative) does not include scheme.

https://www.zhihu.com/question/21950864

Http://www.cnblogs.com/gaojing/archive/2012/02/04/2413626.html

URL and Uri differences and links

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.