Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Last active August 29, 2015 13:56
Show Gist options
  • Save coderofsalvation/8933576 to your computer and use it in GitHub Desktop.
Save coderofsalvation/8933576 to your computer and use it in GitHub Desktop.
shows statistics for an url like requesttime e.g.
# shows statistics for an url like requesttime e.g.
# usage: debug_http "http://foo.com/bar"
# @dependancy: curl
debug_url () {
curl -s $@ -o /dev/null \
-w "http_code %{http_code} time_appconnect %{time_appconnect} time_namelookup %{time_namelookup} time_connect %{time_connect} time_pretransfer %{time_pretransfer} time_starttransfer %{time_starttransfer} time_total %{time_total} speed_download %{speed_download}\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment