How do I programatically download files?
With the WinInet DLL and API (and MFC wrappers), MS have provided us developers with a relatively easy to use set of APIs for retrieving files using any of the known Internet protocols. A nice feature is that these calls make use of the Internet Explorer cache. A weakness is that they rely on IE3 or later being installed on the machine, which is almost universal nowadays.