URL (Uniform Resource location): Uniform Resource Locator
URI (Uniform Resource Identifier): Uniform Resource Identifier
URI: Can represent a domain, can also represent a resource, is a string format specification, and does not specify the purpose; URL: can only represent a domain, is the specification of the resource location, including the URL server file path
1, URI is a purely syntactic structure, used to specify the different parts of the string that flags the Web resource, the URL is a special case of the URI, it contains enough information to locate the Web resource; Generally speaking, each URL has a URI, but not every URI has a URL, Because the URI also includes a subclass urn (the Uniform Resource Name) , in the Java class Library, the URI class does not contain any method to access the resource, its only function is parsing, and the URL class can open a stream that reaches the resource, supports the flow operation
1.1. Each resource available on Uri:web, such as HTML documents, images, video clips, programs, etc., is located by URI.
The general composition of the URI: access to the resource naming mechanism, the host name of the resource, the name of the resource itself, represented by the path, emphasizing the resource
1.2, URL: Is the internet used to describe the information resources of the string, mainly used in various WWW client programs and server programs; URLs can be used in a uniform format to describe various resources, including files, server addresses and directories, etc.
The general composition of the URL: the Protocol (service mode), the host IP address of the resource (something includes the port number), and the specific address of the host resource, such as the directory and file name
URI and URL differences in the HTP protocol