curl-library
Re: CURLOPT_WRITEFUNCTION - cannot make it working...
Date: Sun, 5 Jun 2011 21:10:04 +1000
On Sunday 05 June 2011 09:31:28 Paolo Piacentini wrote:
> >> With the *exact* source code used in getinmemory.c or after you've
> >> C++ified it
>
> to your liking?
>
> Yes, the *EXACT* getinmemory.c. I've put together a simplified test case
> here below that exhibits the same segmentation-fault.
getinmemory.c works for me (with a couple of casts, building from c++). Your
code segfaults.
> It's self-contained:
> =============================================
> curl_easy_setopt(sessionA, CURLOPT_WRITEDATA, NULLFILE);
> curl_easy_setopt(sessionA, CURLOPT_WRITEHEADER, HeaderFile);
I had better luck without this stuff. Perhaps you don't want to do
CURLOPT_WRITEDATA twice.
Brad
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-05