Skip to content

Instantly share code, notes, and snippets.

@dsalazar-carecloud
Created January 29, 2016 13:47
Show Gist options
  • Save dsalazar-carecloud/c57030b56a745eb6e127 to your computer and use it in GitHub Desktop.
Save dsalazar-carecloud/c57030b56a745eb6e127 to your computer and use it in GitHub Desktop.
Granular Curl
curl -w "@formatfile" -k -o /dev/null -s "URI"
time_namelookup: 0.064
time_connect: 0.089
time_pretransfer: 0.089
time_redirect: 0.000
time_starttransfer: 0.117
----------
time_total: 0.117
[admin@cc-tm01-cc01 rg-tmp]$ cat formatfile
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment