cURL / Mailing Lists / curl-library / Single Mail


Re: check internet connection with curl

From: Linus Nielsen Feltzing <>
Date: Fri, 25 Apr 2008 10:44:29 +0200

Meir Yanovich wrote:
> not so simple
> i don't want to show to the user any error , the program itself needs
> to do its best
> to recover when connection to the internet is loss
> there will be endless loop that will preform this checking every N seconds / min
> so now i trying to figure it what will be the best way to preform this check

I still don't get it. Why not just retry the operation until it
succeeds? Why go all the way to try to "check for a connection" before
you try again?

Received on 2008-04-25