用curl和wget命令远程查看服务器信息

curl -I www.csdn.net


TTP/1.1 200 OK
erver: nginx/0.7.68
ate: Thu, 15 Nov 2012 03:09:17 GMT
ontent-Type: text/html; charset=utf-8
onnection: keep-alive
ary: Accept-Encoding
ache-Control: max-age=900
ontent-Length: 132193
ontent-Location: http://www.csdn.net/index.htm
ast-Modified: Thu, 15 Nov 2012 03:01:12 GMT
ccept-Ranges: bytes
Tag: W/"1e281678ddc2cd1:1e7e"
-UA-Compatible: IE=EmulateIE7

-Powered-By: ASP.NET


$ wget -S --spider www.baidu.com
开启 Spider 模式。检查是否存在远程文件。
--2012-11-15 11:16:25-- http://www.baidu.com/
正在解析主机 www.baidu.com (www.baidu.com)... 119.75.217.56, 119.75.218.77
正在连接 www.baidu.com (www.baidu.com)|119.75.217.56|:80... 已连接。
已发出 HTTP 请求,正在等待回应...
HTTP/1.1 200 OK
Date: Thu, 15 Nov 2012 03:16:27 GMT
Server: BWS/1.0
Content-Length: 9803
Content-Type: text/html;charset=gbk
Cache-Control: private
Expires: Thu, 15 Nov 2012 03:16:27 GMT
Set-Cookie: BAIDUID=D9437ABF9E8126F93E0DD75AB654B85B:FG=1; expires=Thu, 15-Nov
-42 03:16:27 GMT; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Connection: Close
长度:9803 (9.6K) [text/html]
存在远程文件且该文件可能含有更深层的链接,
但不能进行递归操作 -- 无法取回。




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值