cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: question regarding CURLOPT_WRITEFUNCTION & CURLOPT_WRITEDATA

From: Mohun Biswas <m_biswas_at_mailinator.com>
Date: Mon, 20 Oct 2008 13:24:26 -0400

Jan wrote:
> hello,
>
> i just want to know if i understand those two functions properly:
>
> WRITEFUNCTION gets chunks of data with a maximum size of
> CURL_MAX_WRITE_SIZE, ptr points to the data of those chunks.
>
> WRITEDATA "collects" all those chunks and writes them to one file.
>
> is this assumption correct?
>
> if yes, i have a question:
> as i read in curl.h it is not wise to change CURL_MAX_WRITE_SIZE to a
> bigger value then 16k.
> but what should i do if i want just one pointer pointing to the whole
> data of the website?

Base your code on the example program getinmemory.c.

MB
Received on 2008-10-20