curl继续下载
One of the most useful but least talked about utilities a developer has at their disposal is cURL. The cURL command line utility has been so amazing that Chrome lets you copy requests as cURL from the developer tools Requests panel. cURL lets you , , , , , and much more.
cURL是开发人员可以使用的最有用但最鲜为人知的实用工具之一。 cURL命令行实用程序非常出色,Chrome浏览器可让您从开发者工具“请求”面板中将请求复制为cURL。 通过cURL,您可以 , , , , 等等。
One more awesome feature that cURL has baked in is allowing the developer to continue interrupted downloads. You can use cURL to download via the -O
option:
cURL引入的另一个很棒的功能是允许开发人员继续中断的下载。 您可以使用cURL通过-O
选项进行下载:
curl -O https://davidwalsh.name
If that download gets interrupted, you can use the -C -
addition to continue the download:
如果该下载被中断,则可以使用-C -
添加继续下载:
curl -C - -O https://davidwalsh.name
If you remember the 14k modem days, there was nothing worse than starting a download from scratch. The internet speed is much faster these days but the average download has increased as well, so if you're using cURL, be sure to use this option to avoid fresh downloads!
如果您还记得14k的调制解调器时代,那没有比从头开始下载更糟糕的了。 如今,互联网速度要快得多,但平均下载量也有所增加,因此,如果您使用的是cURL,请务必使用此选项来避免重新下载!
翻译自:
curl继续下载