
Uniform resource identifier (URI):
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
Examples
The following figure displays two example URIs and their component parts.
hierarchical part
┌───────────────────┴─────────────────────┐
authority path
┌──────┴─────┐
┌────────┴────────┐
abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1
└┬┘└───────┬────┘ └───────┬──┘
└───┬──────────┘└─────────┬─────────┘
scheme user information host port query fragment
urn:example:mammal:monotreme:echidna
└┬┘ └──────────────┬───────────────┘
scheme path
Uniform resource locator (URL)::
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
本文详细解析了统一资源标识符(URI)与统一资源定位符(URL)的概念及其组成结构。通过具体的例子展示了scheme、authority、path等各部分如何构成完整的URI和URL。
615

被折叠的 条评论
为什么被折叠?



