William Shallum

cURL "--retry" and "--continue-at -" : not quite what I had in mind

Posted Jun 8 2011, 01:05 by William Shallum [updated May 13 2013, 02:12]

The cURL library doesn’t inherently support looking at a file and continuing at its end. It only supports resuming at a specific offset (CURLOPT_RESUME_FROM_LARGE) The --continue-at - or -C - option is processed by the command line application by looking at the file once at startup and getting the file size.

The command line application actually truncates the file to the initial size when retrying, this is a known bug (seemingly a bit low priority).

Workaround

Retry from the calling batch file / shell script instead.