[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unpleasant particularity Wget
From: |
Petr Pisar |
Subject: |
Re: Unpleasant particularity Wget |
Date: |
Sun, 7 Mar 2021 09:16:57 +0100 |
V Sun, Mar 07, 2021 at 02:15:40AM +0200, Kmb697@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
signature.asc
Description: PGP signature