Skip to content

Instantly share code, notes, and snippets.

@stanchan
Created February 6, 2017 23:53
Show Gist options
  • Select an option

  • Save stanchan/ad62ecf9e3e73fefb1791ef029787a6a to your computer and use it in GitHub Desktop.

Select an option

Save stanchan/ad62ecf9e3e73fefb1791ef029787a6a to your computer and use it in GitHub Desktop.
cat << EOF >> curl_format.txt
\n
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
\n
EOF
while true; do sleep 1; curl -k -s -o /dev/null -w "@curl_format.txt" https://localhost/api/v3/general/ping ;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment