cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: STARTTRANSFER_TIME vs PRETRANSFER_TIME

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Oct 2008 20:15:12 +0200 (CEST)

On Sat, 4 Oct 2008, Christopher Masone wrote:

> I noticed that curl would report that (after the initial connection of a
> handle to the server), namelookup, connect, and pretransfer time are all 0.

0? That seems weird. The time returned is a double, and it show something >0
for all of those timers.

> The docs describing the difference between pretransfer and starttransfer say
> that the latter "This includes CURLINFO_PRETRANSFER_TIME and also the time
> the server needs to calculate the result."
>
> What does that mean? The server to calculate which result? The first byte
> of data has yet to be uploaded...no?

Pretransfer is when it wants to start sending, while starttransfer is when the
first byte was actually sent (thus when the server was ready to receive
something).

-- 
  / daniel.haxx.se
Received on 2008-10-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET