wget和curl查看web服务器的状态

[root@dbrg-2 ~]# curl -I www.baidu.com
HTTP/1.1 200 OK
Date: Wed, 29 Jul 2009 02:51:19 GMT
Server: BWS/1.0
Content-Length: 3509
Content-Type: text/html
Cache-Control: private
Expires: Wed, 29 Jul 2009 02:51:19 GMT
Set-Cookie: BAIDUID=0D5F54C0853B7C38D6BD3A3E5EA63C44:FG=1; expires=Wed, 29-Jul-39 02:51:19 GMT; path=/; domain=.baidu.com
P3P: 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.61
Connecting 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

[root@dbrg-2 ~]# 

你可能感兴趣的:(apache,nginx,Web,curl,wget)