分类: 系统运维
2010-01-03 17:16:21
一个完整uRL的组成有scheme(模式), user(用户), pass(密码), host(主机), port(端口), path(路径), query(查询), and fragment(节点)。
Typically, you don’t need all these pieces, but here’s an example of how they make up an URL.Consider the following URL at
The values of each parts are:
scheme: http
user: nobody
pass: secret
host: example.com
port: 80
path: /script.php
query: variable=value
fragment: anchor