Wget file handling download html - that interrupt
How to wget a file with correct name when redirected?
The documents will not be written to the appropriate files, but all will be concatenated together and written to file. If is used as file, documents will be printed to standard output, disabling link conversion. (Use to print to a file literally named )
So,
Or you may be able to get to work this out using the --content-disposition option if supported by your version.
Caveats as per the man page,
If this is set to on, experimental (not fully-functional) support for "Content-Disposition" headers is enabled. This can currently result in extra round-trips to the server for a "HEAD" request, and is known to suffer from a few bugs, which is why it is not currently enabled by default.
This option is useful for some file-downloading CGI programs that use "Content-Disposition" headers to describe what the name of a downloaded file should be.
You can achieve the same automated behaviour with , using,
uses the remote name, and forces the to get that name from the content-disposition header rather than the URL, and follows redirects if needed.
-
-