I'm having trouble POSTing variables to a PHP script using WinInet. Here is the code:
Code:
hRequest=HttpOpenRequest(hConnect, "POST", "printpostvariables.php" ,
NULL , NULL, NULL, NULL , NULL );
lstrcpy(lpTempBuffer,"message='hello world'&s='2'");
HttpSendRequest(hRequest,NULL,NULL,lpTempBuffer, lstrlen(lpTempBuffer) );
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?