Author | Message | Time |
---|---|---|
St0rm.iD | Easy way to request a URL and get the HTTP response with the native Win32/POSIX API? Something like: [code] 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); [/code] | June 12, 2007, 2:25 PM |
Skywing | 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). | June 12, 2007, 2:56 PM |
St0rm.iD | Merci. | June 13, 2007, 12:16 PM |