cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to recieve header and body text into string buffer without printout

From: ¼­±¤È£ <xages75_at_gmail.com>
Date: Fri, 17 Oct 2008 15:25:27 +0900

hi. all..
i am writing some app with libcurl
unfortunately, i am not a good programmer.
i have stopped because of small problem.
here are my partial source codes.
i want to header and body text not to be printed out.
help me..

size_t receiveData(void *ptr, size_t size, size_t nmemb, void *stream)
{
       // do something.

       return size;
}

curl_easy_setopt(hCurl, CURLOPT_HEADERFUNCTION, receiveData);

curl_easy_setopt(hCurl, CURLOPT_WRITEFUNCTION, receiveData);

curl_easy_setopt(hCurl, CURLOPT_WRITEHEADER, stdout);
curl_easy_setopt(hCurl, CURLOPT_WRITEDATA, stdout);

thanks in advance..
Received on 2008-10-17