cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Irvs <boreder_at_gmail.com>
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
information

hth,
Irvs

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

> Hi,everyone!
>
> 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.
>
> Regards,
> Todong Ma
>
Received on 2009-07-03