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: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Apr 2008 13:33:44 +0200 (CEST)

On Wed, 2 Apr 2008, Meir Yanovich wrote:

> im want to use cUrl for simple http post request every N seconds (check
> server connection) now what pops me right away is the simple while(1) +
> sleep(N) . does cURL provide more "right" ways todo this ?

No, libcurl doesn't provide any other way. libcurl does the HTTP for you, the
waiting and the looping you do the "normal" way.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-02