【发布时间】:2015-05-12 15:44:20
【问题描述】:
我有一个可从 HTTP URL 下载的 JAR,例如 http://somerepo.example.org/myjar-1.0.jar。
我需要一个将它下载到当前目录的 cURL 命令;到目前为止,我最好的尝试是:
curl -i -H "Accept: application/zip" -H "Content-Type: application/zip" -X GET http://somerepo.example.org/myjar-1.0.jar
当我运行此程序时,我的控制台充满了二进制垃圾邮件,似乎导致我的整个终端崩溃。
从远程 URL 获取 JAR 的正确 cURL 命令是什么?
【问题讨论】: