如何跳过wget中的下载?

时间:2019-05-18 21:32:12

标签: download wget

假设我们写:

  

wget“ https://something.xyz?someparams.xyz

它遵循一系列重定向链接

我们如何获取重定向链接而不下载文件?

Resolving something.xyz  99.99.99.99, 99.99.98.99, 99.99.97.99, ...
Connecting to something.xyz... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cdn.something.com?params.xyz [following]
--2019-05-18 23:22:11--  https://cdn.something.com?params.xyz
Resolving cdn.something.com (cdn.something.com)... 99.99.99.99, 99.99.98.99, 99.99.97.99::
Connecting to cdn.something.com (cdn.something.com)|99.99.99.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1118442372 (1.0G) [video/mp4]
Saving to: ‘file.xyz’

file.xyz                            5%[==>                                                           ]  63.88M  11.8MB/s    eta 1m 54s ^C

我们如何获取后续网址并跳过下载? wget是否有其他替代方法可以完成工作?

0 个答案:

没有答案