发布于 

Curl命令使用指南:参数详解与实用示例 | 高效网络请求技巧

curl

1
2
3
4
5
6
curl --compressed https://www.example.com/large-data
--compressed:请求服务器发送压缩过的响应,并在接收到数据后自动解压缩。

curl --max-time 10 -s -w "\nHTTP_CODE: %{http_code}" ${url} 2>&1

for i in {1..200}; do curl -sILk -w "%{http_code}\n" -o /dev/null http://test.com/ ;done