cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Metrics on server execution time and transfer time

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 May 2011 22:50:02 +0200 (CEST)

On Tue, 3 May 2011, Murugaprabu Marimuthu wrote:

> I am using curl to send a very long POST request to a server. I want to
> measure the time curl takes to send the HTTP request

CURLINFO_PRETRANSFER_TIME is the time all the way until _just before_ libcurl
sends its HTTP request.

CURLINFO_STARTTRANSFER_TIME is the time all the way until the first byte has
been received by libcurl.

> the server execution time and the time spent in receiving reply from the
> server. How do I get these metrics from curl.

It seems like the delta between those two times is what you're asking for.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-03