Tag Archives: curl

Handling constantly Interrupting Downloads using curl

My internet connection has an annoying problem of interrupting downloads too frequently. That way, downloading even resumable files can be tedious. Using the following one liner with curl, Life becomes much easier

until curl -C - -o "<output_file>" "<url>"; do :; done

Until makes sure the loop continues till curl returns a success status. A colon(:) isĀ  a no operation command. This one liner can obviously be modified to suit your needs.