cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Timing multiple GET requests

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 9 Sep 2008 10:28:36 -0700

On Mon, Sep 08, 2008 at 10:43:28AM -0500, Thomas Raef wrote:
> I?d like to get a web page ? no problem here.
>
> However, web pages often have multiple GET requests and associated responses
> (hopefully all 200?s)
>
> I?d like to find out where I would setup a timer so that I can time each GET
> request. Start of first byte, total time, etc for each GET request required for
> any given web page.
>
> Can someone point me in the right direction?

If curl's built-in timers aren't sufficient, you could install a debug
and/or header callback function and parse the data you get in order to
tell exactly what curl is doing when and set your own timers.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-09-09