cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Simpel questions for curl_multi (Delphi) or C

From: michael <michael_at_fyn13.dk>
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.

curl-7.20.0_mingw32_libcurl_openssl-0.9.8n_zlib-1.2.3_libssh2-1.2.4_libidn-1.8_dynamic_pvoigt.zip

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 <michael_at_fyn13.dk> 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: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-10-14