cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: question regarding CURLOPT_WRITEFUNCTION & CURLOPT_WRITEDATA

From: Jan <haihappn_at_gmail.com>
Date: Mon, 20 Oct 2008 16:02:46 +0200

2008/10/20 Daniel Stenberg <daniel_at_haxx.se>

> On Mon, 20 Oct 2008, Jan wrote:
>
> No it doesn't.
>
> WRITEFUNCTION is an option you use to set the write callback function with.
> The callback function gets called numerous times for each download. It does
> not create any large chunk.

mh, now im getting confused. as far as i understood
WriteMemoryCallback<http://curl.haxx.se/lxr/ident?i=WriteMemoryCallback>it
keeps adding the chunks to the memory struct.. so after all the chunks
are processed, they should be stored in the memory struct?
anyway i will try the sample and see how it goes.

>
> (Although this default action does not work if you run libcurl as a DLL on
> Windows.)

i'm sorry, but this is not true. i compiled curl 7.19.0 as windows dll and
it works fine without WRITEFUNCTION. just WRITEDATA does the job, if i want
to write the whole thing to a file.

--
Jan
Received on 2008-10-20