V Sun, Mar 07, 2021 at 02:15:40AM +0200, kmb...@yandex.ru napsal(a):
> Unpleasant particularity Wget
> In version 1.11.4 when I downloaded file from http://sourceforge.net/ got it.
> For example
> https://sourceforge.net/projects/sevenzip/files/7-Zip/17.01/7z1701.exe/download
> I got file with name 7z1701.exe
> wget.exe -x -c --no-check-certificate 
> https://sourceforge.net/projects/sevenzip/files/7-Zip/17.01/7z1701.exe/download
> 
> In new version in this case I got file with name "download".
> It is how 7z1701.exe but has name "download".

You need to pass --content-disposition option to wget to respect the name sent
by the server in a Content-Disposition HTTP header. Otherwise the new wget uses
the last component of the URL as a local file name.

-- Petr

Attachment: signature.asc
Description: PGP signature

Reply via email to