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.

1 thought on “Handling constantly Interrupting Downloads using curl

  1. Pingback: Handling constantly Interrupting Downloads using curl | found.devsite.pl

How did you feel about this post? Push in your reply!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s