I'm having trouble POSTing variables to a PHP script using WinInet. Here is the code:
The return codes from the functions are all good. However, in printpostvariables.php, which WILL print any variables sent to it by the POST command, it cannot find the 'message' or 's' variables. Is the format of my buffer incorrect? If not, what IS happening?
hRequest=HttpOpenRequest(hConnect, "POST", "printpostvariables.php" ,
NULL , NULL, NULL, NULL , NULL );
HttpSendRequest(hRequest,NULL,NULL,lpTempBuffer, lstrlen(lpTempBuffer) );