Code:
URLDownloadToFile(NULL, &listText, "listTemp.txt", 0, NULL);
when listText is "http://www.cppreference.com/stdstring/" it works
when listText is "http://www.cppreference.com/stdstring/index.html" it works
when listText is "http://www.cppreference.com/stdstring/strstr.html" it works
when listText is "http://www.google.com/" it does not work
What i mean by it does not work is that in my program, the URLDownloadToFile fails, and listTemp.txt is not created
I know about automatically looking for index.html or index.htm, but when index.html is not found, how do you find the name of the html file that is loaded when you type the url in the browser?
btw, even though the thread i replied to was in the c++ section, i'm actually using c.