# 只获取响应头 curl -X HEAD -I http://haofly.net
# 提交表单 curl -X POST -F 'username=davidwalsh' -F 'password=something' http://domain.tld/post-to-me.php
# 下载文件 curl -o test.txt haofly.net/test
# 打印详细的连接时间、传输时间、下载速度等 curl -w %{http_connect}:%{time_namelookup}:%{time_redirect}:%{time_pretransfer}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} haofly.net curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" https://haofly.net # 只关心连接时间、处理时间和总耗时
|