论坛风格切换切换到宽版
  • 814阅读
  • 0回复

[问题求助]wget和curl查看web服务器的状态 [复制链接]

上一主题 下一主题
离线kxt314
 
发帖
21
C币
216
威望
13
贡献值
1
银元
0
铜钱
81
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-08-13
— 本帖被 csugirl 执行压帖操作(2011-09-03) —
[root@dbrg-2 ~]# curl -I(或--head) www.baidu.com   HTTP/1.1 200 OKDate: Wed, 29 Jul 2009 02:51:19 GMTServer: BWS/1.0Content-Length: 3509Content-Type: text/htmlCache-Control: privateExpires: Wed, 29 Jul 2009 02:51:19 GMTSet-Cookie: BAIDUID=0D5F54C0853B7C38D6BD3A3E5EA63C44:FG=1; expires=Wed, 29-Jul-39 02:51:19 GMT; path=/; domain=.baidu.comP3P: CP=" OTI DSP COR IVA OUR IND COM "[root@dbrg-2 ~]#  wget -S --spider www.baidu.com--10:51:34--  http://www.baidu.com/           => `index.html'正在解析主机 www.baidu.com... 119.75.216.30, 119.75.213.61Connecting to www.baidu.com|119.75.216.30|:80... 已连接。已发出 HTTP 请求,正在等待回应...   HTTP/1.1 200 OK  Date: Wed, 29 Jul 2009 02:51:29 GMT  Server: BWS/1.0  Content-Length: 3509  Content-Type: text/html  Cache-Control: private  Expires: Wed, 29 Jul 2009 02:51:29 GMT  Set-Cookie: BAIDUID=C81D16B0C5786F4F5FD52E0B355E0B17:FG=1; expires=Wed, 29-Jul-39 02:51:29 GMT; path=/; domain=.baidu.com  P3P: CP=" OTI DSP COR IVA OUR IND COM "长度:3,509 (3.4K) [text/html]200 OK
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个