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

$headers = GetAllHeaders();
foreach($headers as $header=>$value)
echo "$header: $value<br>";
– prints headers