cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: what is the best way to preform http post request every N seconds endlessly

From: Meir Yanovich <meiry242_at_gmail.com>
Date: Fri, 4 Apr 2008 05:38:43 +0200

well im using pthread and cUrl in my app only .
also as i said if i make the examples work like the "multithread.c" in
curl example dir
i hope to learn how to work with cUrl in MT

On Thu, Apr 3, 2008 at 10:59 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Thu, Apr 03, 2008 at 10:24:07PM +0200, Meir Yanovich wrote:
> > even if i insert into the code in main the
> > curl_global_init(CURL_GLOBAL_DEFAULT);
> > it still gives me run time error
> > i also try the cUrl example after puting the curl_global_init in the
> > main and it gives me error
> > can some one please tell me how can it work ?
>
> Your program isn't installing a write callback handler, so libcurl
> will write the output to stdout. Are you sure the stdio routines you're
> using are thread safe? Are you sure you're using a thread safe C library
> to begin with?
>
>
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
Received on 2008-04-04