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........
Posted on 2007-01-03 01:16:14 by Nice Eddie
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 :)
Posted on 2007-01-03 17:05:04 by f0dder