检查“Content-Disposition”标头,以确定要存储的文件名
作者: tats-u创建于 2018年1月22日更新于 2026年9月12日
例如,链接 http://audeering.com/download/1318/ (链接自 http://audeering.com/technology/opensmile/#download) 提供了经过 Gzip 压缩的 tarball,但通过命令 `aria2c -x4 http://audeering.com/download/1318/` aria2 将 tarball 存储为名为 `index.html` 的文件。此链接返回的 `Content-Disposition` 头为 `attachment; filename="opensmile-2.3.0.tar.gz";`,因此 aria2 必须对其进行解析,并将 tarball 存储为名为 `opensmile-2.3.0.tar.gz` 的文件。
内容来源: aria2/aria2