URL
URL:统一资源定位符,Uniform Resource Locator
作用:定位服务器的资源
U
R
L
<
−
−
>
收
货
地
址
URL<-->收货地址
URL<−−>收货地址
schema://host[:port#]/path/.../[?query-string][#anchor]
schema://host[:port#]/path/…/[?query-string][#anchor]
schema 地层协议:http、https、ftp
host 服务器的域名或者 IP 地址
port 服务器端口, HTTP 默认端口时80(可省略),其它的端口要指明。
path 访问资源的路径
query-string 发给服务器的数据
anchor 锚