cURL / Mailing Lists / curl-library / Single Mail

curl-library

Reset of Curl Progress Values

From: Hanno L. Kranzhoff <kranzhoff_at_neptunelabs.com>
Date: Tue, 30 Apr 2002 20:41:35 +0200

I'm using libcurl 7.9.6 easy interface on Win32 to transfer
data via HTTP-Posts.
When reusing the same curl handle to upload multiple
files, the progress data (the download size)
is not being reset between subsequent calls to
easy_perform() until the upload finishes.
The first callbacks to the progress function
contain the correct values for uploaded bytes, but
the values for downloaded bytes are that of the previous
call to easy_perform.
This way the download state remains 100% and the size
remains that of the previous call as long as the upload
takes place.

If I'm not reusing the same curl handle everything is ok.
(Obviously because easy_init initializes progress values
with 0)
Wouldn't it be better if easy_perform resets the progress
values ?

Thanks a lot for developing curl.
regards,
Hanno L. Kranzhoff
Received on 2002-05-01