Last active
October 7, 2016 09:15
-
-
Save wernersmit/75958825f49e3ce82bf7a74f8751d89d to your computer and use it in GitHub Desktop.
cURL display format times
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -w "@curl-format.txt" -o /dev/null -s http://github.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time_namelookup: 0.268 | |
time_connect: 0.553 | |
time_appconnect: 0.000 | |
time_pretransfer: 0.553 | |
time_redirect: 0.000 | |
time_starttransfer: 0.881 | |
---------- | |
time_total: 0.881 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment