用 curl -C - 断点续传下载文件

利用 Windows 自带的 curl 工具,从中断处继续下载文件,而不用从头开始。

Windowscurl 请求网络下载低风险
运行:curl -L -C - -o "file.zip" "https://example.com/bigfile.zip",curl 会从已有文件的末尾继续下载。

01命令

命令
$ curl -L -C - -o "file.zip" "https://example.com/bigfile.zip"

02作用说明

Windows 10 和 11 都内置了 curl.exe,无需额外安装。-C -(continue-at)会让 curl 先看本地已有文件的大小,再向服务器请求剩余的部分;-L 表示跟随重定向,-o 指定保存的文件名。下载中断后只要重新运行同一条命令,就会接着上次的位置继续。

03风险

风险低风险
使用条件Windows 10 (1803+) and 11 include curl.exe by default
!注意: 断点续传需要服务器支持字节范围请求;如果文件每次都从头下,说明服务器不支持续传。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • curl man page
    curl.se · vendor-doc · 2026-09-17
    依据: Documents -C/--continue-at with '-' to automatically find where the transfer should resume (continue/append to an existing output file) and -o to set the output file name.
  • curl.exe - Transfer data from or to a server
    SS64.com · technical · 2026-09-17
    依据: Windows curl reference listing -o (output file), -L (follow redirects) and --continue-at / -C for resuming a previous transfer.

最后验证: 2026-09-19 · 分类: 网络

06相关方案