分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]

curl 实用操作 不指定

root , 2009/08/28 00:02 , Linux , 评论(0) , 阅读(24018) , Via 本站原创
1、开启gzip请求
curl -I http://www.sina.com.cn/ -H Accept-Encoding:gzip,defalte

2、监控网页的响应时间
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http://www.kklinux.com"

3. 监控站点可用性
curl -o /dev/null -s -w %{http_code} "http://www.kklinux.com"

4、以http1.0协议请求(默认为http1.1)
curl -0 ..............
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]