curl-library
Re: reuse easy curl handle with multi interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 16 Jul 2011 00:53:04 +0200 (CEST)
Date: Sat, 16 Jul 2011 00:53:04 +0200 (CEST)
On Fri, 15 Jul 2011, Alex Stanciu wrote:
> for point 4:
> curl_easy_reset
> curl_easy_setopt(URL + rest)
> (CURLOPT_UPLOAD is also set to 0 for load)
> curl_multi_add_handle(multi_handle, handle->curl_handle)
> (returns CURLM_OK)
> curl_multi_perform
> (returns CURLM_OK)
> then i do the while (still_running) ... just like in the sample code
>
> as I said everything looks ok when debugging except CURLOPT_WRITEFUNCTION
> is not called and (ofc) no data is written to the buffer
I'd suggest you also set CURLOPT_VERBOSE to 1L and see what it says, it often
brings more info into the light.
You description seems to describe a valid way of using libcurl I believe.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-07-16