Lambdacurry

The perfect cURL commandline (like wget)


curl -C - -OLR

What this does is:

  1. Resume any broken/failed/paused download (drop the ”-C -” otherwise)
  2. 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)
  3. 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


Lambdacurry

The perfect cURL commandline (like wget)

Published

November 09, 2010

Find me on Twitter @sandeepssrin

Did i make any mistake? Please consider sending a pull request.