cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: tracking download for each handle

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sat, 2 May 2009 06:34:37 -0500

On Sat, May 2, 2009 at 5:27 AM, Saidus Bounderra <bsaidus_at_gmail.com> wrote:

> for the progress function : is it possible to identify at any time which
> handle is downloading (in activity) in the progress function
> or is there any way to do that !!

Sure, if you do:
curl_easy_setopt(curl_handle, CURLOPT_PROGRESSDATA, curl_handle);

Then the first argument in your progress callback will point back to
the curl_handle.

 - Jeff
Received on 2009-05-02