curl

打印curl总耗时

echo "time_total is %{time_total}s\n" > curl-format.txt
curl -w "@curl-format.txt" -o /dev/null -s -L http://localhost:1000/test

-w:从文件中读取打印格式

-o /dev/null:丢弃响应内容

-s:不打印进度条

curl指定源端口

curl --local-port 20000 http://xxx

 

posted on 2023-01-08 19:34  王景迁  阅读(45)  评论(0编辑  收藏  举报

导航