Skip to content

Instantly share code, notes, and snippets.

@josephscott
Created July 29, 2013 14:12
Show Gist options
  • Save josephscott/6104566 to your computer and use it in GitHub Desktop.
Save josephscott/6104566 to your computer and use it in GitHub Desktop.
#!/bin/sh
# adapted from https://github.com/mat/dotfiles/blob/master/bin/curlt
curl_format='{
"time_namelookup": %{time_namelookup},
"time_connect": %{time_connect},
"time_appconnect": %{time_appconnect},
"time_pretransfer": %{time_pretransfer},
"time_redirect": %{time_redirect},
"time_starttransfer": %{time_starttransfer},
"time_total": %{time_total}
}'
curl -w "$curl_format" \
-k \
--compressed \
-v \
-s \
-o /dev/null \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment