cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: retry doesn't work on win32?

From: Tobias Wendorff <tobwen_at_gmx.de>
Date: Tue, 16 Jan 2007 20:55:43 +0100

Daniel Beardsmore wrote:
> Tobias Wendorff wrote:
>> Lars Nilsson wrote:
>>> 1. Script the necessary behaviour around the curl executable (using
>>> the return code of the curl command)
>>
>> I think, I will start 6 cronjobs, running every 4 hours.
>> Then cURL can try to upload it 4 times a day...
>
> LOL!
>
> Doesn't cURL return an error code that you can check on? After you run
> cURL, check the error code and then if it failed, sleep() a bit and
> retry?

sleep() on win32 (WinXP SP2) ??
Received on 2007-01-16