HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/php8.4/test/HTTP_Header/response.php
<?php
require_once 'HTTP/Header.php';

$h = &new HTTP_Header;
$s = 200;

foreach ($_GET as $header => $value) {
    if (!strcasecmp('redirect', $header)) {
        HTTP_Header::redirect($value);
    }
    if (strcasecmp('status', $header)) {
        $h->setHeader($header, $value);
    } else {
        $s = $value;
    }
}
$h->sendHeaders();
$h->sendStatusCode($s);
?>