diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-22 20:20:14 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-22 20:20:14 +0300 |
commit | 3b7238996ad68f3c56a031e72e0b2f9aa0c8662c (patch) | |
tree | b491b30834997e406d6139aaf39d7bc6140d7f30 /test/php/variables | |
parent | 7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 (diff) | |
download | unit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.gz unit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.bz2 |
Tests: initial PHP application tests.
Diffstat (limited to 'test/php/variables')
-rw-r--r-- | test/php/variables/index.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/php/variables/index.php b/test/php/variables/index.php new file mode 100644 index 00000000..8f2e3bfc --- /dev/null +++ b/test/php/variables/index.php @@ -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; +?> |