Timing the webpage html download through curl

The following is an example of curl usage for url ‘http://www.google.co.in’ as a request made by Firefox-10

curl -w 'DNS Lookup Time:\t\t%{time_namelookup}\nConnect time:\t\t%{time_connect}\nPreXfer time:\t\t%{time_pretransfer}\nStartXfer time:\t\t%{time_starttransfer}\nTotal time:\t\t%{time_total}\nNumberofConnects:\t\t%{num_connects}\nNumberofRedirects:\t\t%{num_redirects}\nRedirectTime:\t\t%{time_redirect}\nHttpStatus:\t\t%{http_code}' --user-agent 'Mozilla/6.0 (Macintosh; I; Intel Mac OS X 11_7_9; de-LI; rv:1    .9b4) Gecko/2012010317 Firefox/10.0a4' -s http://www.google.co.in

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: