What worked for me:
LPSTR post = "log=test";//in my php file: if(isset($_POST['log'])) hRequest = WinHttpOpenRequest(hConnect, L"POST", L"/test.php", NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, 0); bResults = WinHttpSendRequest(hRequest, L"content-type:application/x-www-form-urlencoded", -1, post, strlen(post), strlen(post), NULL);
Ohadm source share