Étienne Faure <tinou...@gmail.com> writes: > Hello, > > I've had a small issue downloading scripts from www.vim.org: > > The URI ends with a php file and a variable argument. With the current > wget setup, the script name isn't deduced from the header. > Thus, the downloaded file's name is something like: > > download_script.php?src_id=1234 > > > I managed to solve this problem using curl and its --remote-header-name. > > I didn't find a way to do this with wget.
There is a fix for this that involves using the webkit_download_get_suggested_filename function and passing it to wget's -O option, but I can't figure out how to prevent clobbering of an already existing file by that name. Perhaps we should use curl instead. -- \ Troels /\ Henriksen