I want to download files from the web and have already written the downloader however .....
How do i resolve the target name of the the file?
Its easy with direct links to the filename ie.
http://www.masm32.com/masm.exe
But how the heck do i do it with something like this?
http://www.masm32.com/index.php?act=Downloads&do=download&id=4801
(both made up examples btw)
I would really apreciate anyones help on this.
Microsofts own 'support' on the subject reads like badly written japanese stereo instructions........
I guess you look at the returned headers? Ie, stuff like redirect, or mime types etc.
Alternatively, use libcurl and you can grab just about everything :)
Alternatively, use libcurl and you can grab just about everything :)