Skip to content

Instantly share code, notes, and snippets.

@markmur
Created April 15, 2019 09:42
Show Gist options
  • Save markmur/aad31be1d06b067fa70690617fe3f97a to your computer and use it in GitHub Desktop.
Save markmur/aad31be1d06b067fa70690617fe3f97a to your computer and use it in GitHub Desktop.
(cURL) Output network details for request (https://blog.josephscott.org/2011/10/14/timing-details-with-curl/)
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
# Make a request:
curl -w "@curl-format.txt" -o /dev/null -s URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment