summaryrefslogblamecommitdiffhomepage
path: root/test/php/variables/index.php
blob: 8f2e3bfc88d46b77fca8e6db87aa8a0b472ed039 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                           
<?php
$body = file_get_contents('php://input');

header('Content-Length: ' . strlen($body));
header('Request-Method: ' . $_SERVER['REQUEST_METHOD']);
header('Request-Uri: ' . $_SERVER['REQUEST_URI']);
header('Http-Host: ' . $_SERVER['HTTP_HOST']);
header('Server-Protocol: ' . $_SERVER['SERVER_PROTOCOL']);
header('Server-Software: ' . $_SERVER['SERVER_SOFTWARE']);
header('Custom-Header: ' . $_SERVER['HTTP_CUSTOM_HEADER']);

echo $body;
?>