准备
#vim  curl-time.txt 
\n
              http: %{http_code}\n
               dns: %{time_namelookup}s\n
          redirect: %{time_redirect}s\n
      time_connect: %{time_connect}s\n
   time_appconnect: %{time_appconnect}s\n
  time_pretransfer: %{time_pretransfer}s\n
time_starttransfer: %{time_starttransfer}s\n
     size_download: %{size_download}bytes\n
    speed_download: %{speed_download}B/s\n
                  ----------\n
        time_total: %{time_total}s\n
\n
使用
curl -w "@curl-time.txt" https://www.sogou.com/websearch/api/getcity
结果

image.png

Last modification:November 2, 2021
如果觉得我的文章对你有用,请随意赞赏