标题:curl 实用操作 出处:运维进行时 时间:Fri, 28 Aug 2009 00:02:33 +0000 作者:root 地址:https://blog.liuts.com/post/163/ 内容: 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 .............. Generated by Bo-blog 2.1.1 Release