response-headers.php 270 B

12345678910111213
  1. <?php
  2. require_once __DIR__.'/_executor.php';
  3. return function () {
  4. header('Foo: bar');
  5. header('Foo2: bar2');
  6. header('Invalid');
  7. header('I: ' . ($_GET['i'] ?? 'i not set'));
  8. http_response_code(201);
  9. var_export(apache_response_headers());
  10. };