URI构造
URI结构
URI结构
[scheme:][//host:port][path][?query][#fragment]
path:从端口后第一个/开始,可以有多个,每个用/连接。
query:
从
第一个?
开始,至行尾或#
结束。参数可以带值,也可以不带,多个参数用&连接。
fragment:
以#
为开始,行尾为结束。
例子:
foo://username:password@example.com:8042/over/there/index.dtb?type=animal&name=narwhal#nose
\_/ \________________/ \_________/ \__/\___________________/\_____________________/ \__/
| | | | | | |
scheme userinfo host port path query fragment
name