cURL / Mailing Lists / curl-library / Single Mail


Re: simple.c doesn't work...

From: Irvs <>
Date: Fri, 3 Jul 2009 18:51:25 +0800

me too is a newbie, hope this one will help you.

you might want to try adding this line to display the output to the console:
     curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
 or you can redirect it to a file
     example :
      curl_easy_setopt(curl, CURLOPT_WRITEDATA, file);
    // CUROPT_WRITEDATA will write the actual data only without the header


On Fri, Jul 3, 2009 at 6:31 PM, gbstack <> wrote:

> Hi,everyone!
> I just compiled the simple.c(an example code of curl website:
>,but when I ran
> it,it didn't work,it didn't display anyting...
> what should I do to fix it?
> any suggestion is appreciated.
> Regards,
> Todong Ma
Received on 2009-07-03