curl-users
Re: retry doesn't work on win32?
From: Daniel Beardsmore <public_at_telcontar.net>
Date: Mon, 15 Jan 2007 21:14:15 +0000
Date: Mon, 15 Jan 2007 21:14:15 +0000
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?
Received on 2007-01-15