Is there a way of obtaining the POST data exactly as it was recieved by the server? I have an application in which I being sent data that is not in a format which PHP can assign to the HTTP_POST_VARS array, and need to process it myself. Thanks, Rob.
Robert,
check out this url. It has all the Apache and Php predefined variables. http://www.php.net/manual/en/language.variables.predefined.php
Brian
Thanks Brian, but their doesn't seem to be a predefined variable for POST data. I am looking for an equivalent of $QUERY_STRING.
Scanning through the output of phpinfo() has not thrown up any likely variables either.
$HTTP_POST_VARS["varname"]; is that what you're looking for? you can just do a print_r on it and it will print all the things in the array.
No, the HTTP_POST_VARS array is not being filled - the data I am being POSTed is in binary format and I will need to handle it myself as PHP is failing to split it into variables.