Hel*_*llo 5 linux bash https curl
我需要从https://file_path. 这是我用于此的 curl 命令:
curl --user user:password "https://file_path?raw" > location
Run Code Online (Sandbox Code Playgroud)
小智 4
curl修改它发送到 stdout 和 stderr 的内容,具体取决于您是否通过管道传输输出、使用什么选项等...您需要发布脚本才能确切了解为什么会出现这种情况。强制将下载内容保存到特定文件中的最佳方法是使用以下-o选项:
curl --user user:password -o output_file "https://file_path?raw"
根据您对脚本的处理方式,您可能还想使用该-s选项来抑制下载进度。
| 归档时间: |
|
| 查看次数: |
16915 次 |
| 最近记录: |