Resuming an HTTP download with Curl

December 30, 2007

I had to download an ISO image to test some new firewall software and it got interrupted halfway through. Fortunately, curl has a way to continue from where you left out with the “-C -” option. A full command line looks like:

curl -C – –compressed –output disk.iso http://example/download/disk.iso


Avoid hogging bandwidth with curl’s –limit-rate

October 26, 2007

At work we have a slower (1.1 Mbps) internet connection and I don’t want to hog it when I need to download a big file. Fortunately, curl has a –limit-rate option. For example (should be one line):

curl –verbose –output bigfile.tar.gz –limit-rate 3000 http://download.example.com/bigfile.tar.gz