Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / loading / resources / protected-resource.php
blobfbb68167d5d6d73f506fdfcf194777ab0b8fa4dd
1 <?php
2 header("Cache-Control: no-store");
3 header("Connection: close");
4 if (!isset($_SERVER['PHP_AUTH_USER'])) {
5 header("WWW-authenticate: Basic realm=\"" . $_SERVER['REQUEST_URI'] . "\"");
6 header('HTTP/1.0 401 Unauthorized');
7 exit;
9 ?>
10 Authenticated as user: <?php print (string)$_SERVER['PHP_AUTH_USER']?> password: <?php print (string)$_SERVER['PHP_AUTH_PW']?>