The difference between a URL and a URI

Source: Internet
Author: User

URL (Uniform Resource Locator), generic resource locator . http://www.eamonning.com/index.php is a URL.

URI (Uniform Resource Identifier), generic resource identifier .

A URI is purely a symbolic structure that specifies different parts of a string that makes up a web resource. A URL is a special type of URI that contains enough information to find a resource. Other URIs, such as: Mailto:[email protected], do not belong to a locator because there is no data in it that is found based on that identifier, which is called a urn (common resource name).

In the Java library, the URI class does not contain any methods for accessing the common resource identifier settings, and its sole purpose is to parse. Instead, the URL class can open a string that reaches the resource.

transferred from: http://www.eamonning.com/blog/view/232

The difference between a URL and a URI

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.