Is it possible in php to get the whole request I sent (including the header) ?

I searched a lot, but never found something similar. You can output all sorts of variables, but it didn’t work to return the full query.

Is it possible to achieve this using php without resorting to a sniffer?


Answer 1

print_r($_REQUEST);– prints $_GET, $_POST, $_COOKIE
http://php.net/manual/en/reserved.variables.request.php

$headers = GetAllHeaders();
foreach($headers as $header=>$value)
echo "$header: $value<br>";
– prints headers
http://www.spravkaweb.ru/php/managfun/www/headerquery