Tests: added tests for PHP_AUTH_* variables.

This commit is contained in:
Andrei Zeliankou
2020-12-10 19:28:41 +00:00
parent 7be62c3c21
commit 16ac829c8f
2 changed files with 65 additions and 0 deletions

7
test/php/auth/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
header('X-Digest: ' . (isset($_SERVER['PHP_AUTH_DIGEST']) ? $_SERVER['PHP_AUTH_DIGEST'] : 'not set'));
header('X-User: ' . (isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : 'not set'));
header('X-Password: ' . (isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : 'not set'));
?>