<?php
$data = array(
    "get" => $_GET,
    "post" => json_decode(file_get_contents('php://input'), true),
    "username" => $_SERVER['PHP_AUTH_USER'],
    "password" => $_SERVER['PHP_AUTH_PW']
);

header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
exit();
?>
