How to wget a file with correct name when redirected?
Problem
So after some time of searching on Google and Super User (and scanning man pages) I was unable to find an answer to something that (I think) should be simple: If you go here: And try to download the theme: Like so: You’ll probably end up with a file called . But I want it to be called , which is what would happen if I used a browser to download this file. What options do I need to specify for wget for the desired effect? I'd also be ok with a Curl equivalent command.
Error Output
http://www.vim.org/scripts/script.php?script_id=2340
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: 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 automatically use the filename proposed by the server using the 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-Di…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix