I am trying to view a webpage's source with c++ so I can get the response
for a whitelist. This doesn't read the specified page's source, but it instead reads the contents of the parent directory. How can I have it read the XeonWhitelist page's source?
Your code is fine. The problem is that the server sends an empty file to the browser and for some reason URLDownloadToFile refuses to create an empty file.
It works when you use a different url like http://www.wearedevs.net