- 论坛徽章:
- 19
|
回复 20# ulovko - $ curl -I chinaunix.net
- HTTP/1.1 301 Moved Permanently
- Server: nginx/1.0.5
- Date: Wed, 30 May 2012 11:32:10 GMT
- Content-Type: text/html
- Content-Length: 184
- Connection: keep-alive
- Location: http://www.chinaunix.net
- $ wget -S --spider !$
- wget -S --spider chinaunix.net
- 开启 Spider 模式。检查是否存在远程文件。
- --2012-05-31 03:32:39-- http://chinaunix.net/
- 正在解析主机 chinaunix.net... 202.106.124.18
- 正在连接 chinaunix.net|202.106.124.18|:80... 已连接。
- 已发出 HTTP 请求,正在等待回应...
- HTTP/1.1 301 Moved Permanently
- Server: nginx/1.0.5
- Date: Wed, 30 May 2012 11:32:39 GMT
- Content-Type: text/html
- Content-Length: 184
- Connection: keep-alive
- Location: http://www.chinaunix.net
- 位置:http://www.chinaunix.net [跟随至新的 URL]
- 开启 Spider 模式。检查是否存在远程文件。
- --2012-05-31 03:32:39-- http://www.chinaunix.net/
- 正在解析主机 www.chinaunix.net... 61.55.167.115
- 正在连接 www.chinaunix.net|61.55.167.115|:80... 已连接。
- 已发出 HTTP 请求,正在等待回应...
- HTTP/1.1 200 OK
- Server: nginx/1.0.6
- Date: Wed, 30 May 2012 11:32:39 GMT
- Content-Type: text/html
- Connection: keep-alive
- it168: 1.156
- 长度:未指定 [text/html]
- 存在远程文件且该文件可能含有更深层的链接,
- 但不能进行递归操作 -- 无法取回。
复制代码 第一个命令我怎么没有听说过
百度百科上说curl是利用URL语法在命令行方式下工作的文件传输工具 |
|