Easy way to request a URL and get the HTTP response with the native Win32/POSIX API? Something like:
HTTPResponse response;
char buffer[255];
FetchURL("http://www.blah.com/dosomething.php?x=y", &response, &buffer, 255);
printf("Response body was of length %d and was: %s\n", response.content_length, buffer);
WinHttp: WinHttpOpen, WinHttpOpenRequest, WinHttpSendRequest, WinHttpReadData.
Or, alternatively (though WinHttp is considered the preferred choice on modern platforms), there still exists WinInet: InternetOpen, InternetOpenUrl, InternetReadFile (or the Http* APIs instead, or InternetDownloadUrlToFile).
Merci.