Possible Duplicate:
How to download a file with WinHTTP in C/C++?
I have a URL, example:
https://dl.dropbox.com/u/5465642/myfile.xml
And a C++ application on Windows. When my application launches I want to spend 2 seconds to try to download the file into application memory. If file is downloaded I will do my stuff with it. If not I will just skip it. I don't want to use C# and .Net for this. No heavy external libraries or DLLs. Probably WinApi or some small external library. To work on Windows XP and higher. Not dependent of IE explorer version or something similar.