LEE Resource URLURI URI

Uniform Resource Locator
http://www.ietf.org/rfc/rfc2396.txt

http://www.example.com/docs/resource1.html

协议://host:port/information

relative URL

不需要 协议 host port

编码

不支持编码和解码

URI

Uniform Resource Identifier

语法

[scheme:]scheme-specific-part[#fragment]
Scheme

Opaque

mailto:[email protected]

hierarchical URI

[scheme:][//authority][path][?query][#fragment]

authority(server-based)

[[email protected]]host[:port]

和URL区别

A URI is a uniform resource identifier while a URL is a uniform
resource locator.
Hence every URL is a URI, but not every URI is a URL.