2 ms·
It is important to make a difference between a remote filename supplied in a Content-Disposition header or the substring that can be extracted from the given UR
by raimue 10y ago
It is important to make a difference between a remote filename supplied in a Content-Disposition header or the substring that can be extracted from the given URL by splitting at slashes.
wget by default uses the latter, appending the QSA (?foo=bar) even when not intended. Same behavior for `curl -O`. You have to use `wget --content-disposition` or `curl -O -J` to explicitly trust the filename send by the server.