cURL / Mailing Lists / curl-library / Single Mail


Re: Simpel questions for curl_multi (Delphi) or C

From: michael <>
Date: Wed, 14 Oct 2015 18:11:16 +0200

Hi Jeff...

Found a solution need a little more testing, but it seems to work well.

I'm using the newest curlpas code, and have made my own class.

Do you know if there is a newer version like this one I could try.

This is a little old but it works with curl_multi as I needed..

On 10/14/2015 03:13 PM, Jeff Pohlmeyer wrote:
> On Wed, Oct 14, 2015 at 6:11 AM, michael <> wrote:
>> Has found a way around my delphi curl_multi download, so now I have a new
>> problem knowing which Page the downloaded data comes from.
>> Is there a way to Add some info into UserData, for instance a number so I
>> can track with handle there is doing the download ???
> The value passed to CURLOPT_WRITEDATA can be a pointer to anything you want,
> as long as it remains valid and in scope while the handle is running.
> If you just want to track the handle itself, then pass the handle as the
> third argument to curl_easy_setopt.
> If you want an integer index you can either typecast the integer to a pointer
> or use a pointer to the index variable.
> If you want to pass a complex structure you can create a Pascal "record"
> containing whatever information you need, then use a pointer to that
> record for curl_easy_setopt, and dereference that pointer from
> inside your MyWriteFunction.
> - Jeff
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2015-10-14