curl 实用操作

    技术2025-03-21  16

    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 ..............
    最新回复(0)