1 2 3 4 5 6
|
LPVOID myMessage = (LPVOID)postData.c_str();
HINTERNET hInternet = InternetOpenA("Mozilla/5.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
HINTERNET hConnection = InternetConnectA(hInternet, "website.com", 80, " ", " ", INTERNET_SERVICE_HTTP, 0, 1);
HINTERNET hRequest = HttpOpenRequestA(hConnection, "POST", "/handler.php", NULL, NULL, NULL, 0, 1);
HttpSendRequestA(hRequest, headers, strlen(headers), myMessage, postData.length());
|