linux中的curl命令
1个回答
展开全部
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? :)
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? :)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询