统一资源定位符,是URI最常见的形式。URL描述了一台特定服务器上某资源的特定位置。url一般分为三个部分:
方案(scheme),访问资源所使用的方案,通常就是http协议
服务器的地址,比如www.notedeep.com
其余部分表示了web服务器上的某个资源
<scheme>://<user>:<password>@<host>:<port>/<path>;<params>?<query>#<frag>
ftp://joe:joespasswd@ftp.prep.ai.mit.edu/pub/gnu
ftp://prep.ai.mit.edu/pub/gnu;type=d
http://www.xxx.com/hammers;sale=false/index.html;graphics=true;
上面的url中,有两个path,一个是hammers并且有参数sale=false,另一个是index.html,有参数graphics=true。
http://www.xxx.com/tools.html#drills
片段drills引用了tools.html中的一个部分,这部分的名字叫drills.从drills的片段处开始显示html页面。
% / . .. # ? ; : $ , @ & = { } | \ ^ ~ [ ] ' < > "