PowerGod
Forum Addict!
- Joined
- Jun 20, 2011
- Messages
- 4,456
Using "wget" with the parameter "--content-disposition", for example, the downloaded file will be automatically named using the headers taken from the URL.
If the same file is downloaded more then once, wget will add numbers to the filename.
So, how programatically I can catch the filename just saved from wget ?
Using the "-o" parameter to log the messages on a file, I could catch the name somehow, but those messages are not standard, and those phrases can change depending on the language of the OS...
On the internet I don't know what to search... the keywords "wget" and "filename" are used too much...
If the same file is downloaded more then once, wget will add numbers to the filename.
So, how programatically I can catch the filename just saved from wget ?
Using the "-o" parameter to log the messages on a file, I could catch the name somehow, but those messages are not standard, and those phrases can change depending on the language of the OS...
On the internet I don't know what to search... the keywords "wget" and "filename" are used too much...