Skip to content

Instantly share code, notes, and snippets.

@n8foo
Created March 1, 2012 16:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n8foo/1951192 to your computer and use it in GitHub Desktop.
Save n8foo/1951192 to your computer and use it in GitHub Desktop.
Curl Stats Command
#! /bin/bash
curl -L --output /dev/null --write-out "http_code:%{http_code} http_connect:%{http_connect} time_total:%{time_total} time_namelookup:%{time_namelookup} time_connect:%{time_connect} time_appconnect:%{time_appconnect} time_pretransfer:%{time_pretransfer} time_redirect:%{time_redirect} time_starttransfer:%{time_starttransfer} size_download:%{size_download} size_upload:%{size_upload} size_header:%{size_header} size_request:%{size_request} speed_download:%{speed_download} speed_upload:%{speed_upload} content_type:%{content_type} num_connects:%{num_connects} num_redirects:%{num_redirects}\n" --silent $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment