The perfect cURL commandline (like wget)
curl -C - -OLR
What this does is:
- Resume any broken/failed/paused download (drop the ”-C -” otherwise)
- Write the output to a file which is named the same as on the server (you can drop the ”-O” and instead use ”_-o
“_to redirect to a filename of your choosing) - Sets the remote file time on the local file (drop the ”-R” otherwise)
Just as a side note, one of the solutions for resuming a paused download in curl is to use
cat file-that-failed-to-download.zip | curl -C - http://www.somewhere.com/file-I-want-to-download.zip >successfully-downloaded.zip