I am attempting to download the contents of some specific web pages using C++ in Visual Studio 2008. I found a previous SO question here. That question had two answers but I can't make either of them work.
With regard the "libcurl" answer, I have failed to find the correct download for visual studio. I found some documentation which suggested that the download should contain “curllib.dsw", but I failed to find a download that included this file.
With regard the "windows code" answer... I tried it and it works perfectly for downloading the homepage of any website, eg, "www.sample.com", but I failed work out how to modify the code to download the contents of arbitrary URLs, e.g. "www.sample.com/subdir/subpage.htm".