cURL / Mailing Lists / curl-library / Single Mail


Output Buffer of libcurl

From: Ercan Akyürek <>
Date: Sun, 3 Feb 2008 12:21:38 +0100

Hello Everybody,
I haven't ever written one line code of libcurl, and I would like to
learn it, but I can write C codes ;)
I would like to request to a webpage a POST method with this code:

------------------------- BEGIN ------------------------------------------
#include <curl/curl.h>

 int main()
         CURLcode *handle = curl_easy_init();

         char *post="platform=gtk&mode=checkversion";
         curl_easy_setopt( handle, CURLOPT_POSTFIELDS, post);

         curl_easy_setopt( handle, CURLOPT_URL,

         curl_easy_perform( handle);
------------------------- END ------------------------------------------

Yes, it works, but how I can get the output content buffer?

I would like to save the output buffer of the returned content from
the server in an array-char....

How can I do this?

Received on 2008-02-03