curl-library
Re: Progress function: dltotal always 0 ?
From: Stephen Collyer <scollyer_at_netspinner.co.uk>
Date: Mon, 07 Jan 2008 15:40:34 +0000
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 ?
-- Regards Steve Collyer Netspinner LtdReceived on 2008-01-07