Re: simple.c doesn't work...
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
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 <gbstack08_at_gmail.com> wrote:
> I just compiled the simple.c(an example code of curl website:
> http://curl.haxx.se/lxr/source/docs/examples/simple.c),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.
> Todong Ma
Received on 2009-07-03