<?php
header('Content-Type: application/json');
echo json_encode([
    'request_uri' => $_SERVER['REQUEST_URI'],
    'method' => $_SERVER['REQUEST_METHOD'],
    'php_self' => $_SERVER['PHP_SELF'],
    'script_name' => $_SERVER['SCRIPT_NAME'],
    'auth_header' => $_SERVER['HTTP_AUTHORIZATION'] ?? 'NOT SET',
    'redirect_auth' => $_SERVER['REDIRECT_HTTP_AUTHORIZATION'] ?? 'NOT SET',
    'index_file' => realpath(__DIR__ . '/index.php'),
    'test' => 'OK - this file executes directly'
]);
