cURL / Mailing Lists / curl-library / Single Mail

curl-library

Output Buffer of libcurl

From: Ercan Akyürek <ercan.akyuerek_at_googlemail.com>
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,
"http://www.geheim.de/datei.php");

         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?

Thanks,
Ercan
Received on 2008-02-03