如何查看某个网站使用的服务器--curl

来源:互联网 发布:gta5捏脸数据女杨幂 编辑:程序博客网 时间:2024/06/06 03:31

偶尔在网站上发现了cur命令

1.其中的 一个方法是

#curl --head  http://www.xunlei.com
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Thu, 21 May 2009 01:49:30 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 21 May 2009 01:50:30 GMT
Cache-Control: max-age=60

 

可以看到迅雷使用的是nginx版本号是0.6.31

$ curl --head  http://www.google.com
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Date: Thu, 21 May 2009 01:51:10 GMT
Expires: -1
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: PREF=ID=e223a3908ffd3a1f:NW=1:TM=1242870670:LM=1242870670:S=9YR0ysumzm42O25n; expires=Sat, 21-May-2011 01:51:10 GMT; path=/; domain=.google.com
Server: gws
Transfer-Encoding: chunked

 

 

$curl --head  http://www.qq.com
HTTP/1.0 200 OK
Date: Thu, 21 May 2009 01:51:44 GMT
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=120
Expires: Thu, 21 May 2009 01:53:44 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=GB2312
Age: 1
X-Cache: HIT from rainny.qq.com
Via: 1.0 rainny.qq.com:80 (squid/2.6.STABLE5)

 

 

 

 

具体的使用方法是curl --help

man curl

 

原创粉丝点击