Tests: initial PHP application tests.

This commit is contained in:
Andrey Zelenkov
2018-05-22 20:20:14 +03:00
parent 7d224bfc9e
commit 3b7238996a
11 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,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;
?>