cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: About write call function

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 13 May 2008 23:15:57 -0700

On Wed, May 14, 2008 at 11:25:57AM +0530, Ajeet kumar.S wrote:
> For receiving the data coming from server I set below option and write
> ReadCallback function. In ReadCallback function I am storing data in char
> Http_Rx_Data[102400] and char *http_ptr= &Http_Rx_Data[0];
>
>
>
> curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ReadCallback);
>
>
>
> int totalsize;
>
> void ReadCallback( char *data_ptr, size_t size, size_t nmemb, char *data)

This isn't the signature of a libcurl write callback function. It has
to be of type curl_write_callback, and the callback must return a correct
value.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-05-14