cURL / Mailing Lists / curl-library / Single Mail


Re: Progress function: dltotal always 0 ?

From: Stephen Collyer <>
Date: Mon, 07 Jan 2008 15:40:34 +0000

Michal Marek wrote:
> Stephen Collyer wrote:
>> I'm using a progress function as set by CURLOPT_PROGRESSFUNCTION.
>> Whenever it's called dltotal is 0, and dlnow is set to the current
>> number of downloaded bytes.
> Then the server probably doesn't send the Content-Length header. dltotal
> is the expected total download size.

Right. Thanks for that. By the way, is that documented somewhere,
or did you discover it some other way ?

Steve Collyer
Netspinner Ltd
Received on 2008-01-07