linux中的curl命令

在安装完Apache以后,curl -I http://IP 这条语句的主要的作用是什么

curl -I url 是只取 server 的回应,不含内容, 如

user@minix-nb:~$ curl -I http://www.baidu.com
HTTP/1.1 200 OK
Date: Wed, 16 Sep 2009 11:16:23 GMT
Server: BWS/1.0
Content-Length: 3509
Content-Type: text/html
Cache-Control: private
Expires: Wed, 16 Sep 2009 11:16:23 GMT
Set-Cookie: BAIDUID=0EC3F02D099D83B4EDA0C65E09A487D6:FG=1; expires=Wed, 16-Sep-39 11:16:23 GMT; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "

ok? :)
温馨提示:答案为网友推荐,仅供参考
相似回答