This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Rather than using PHP for each file where we need to change the HTTP headers, I think it would be useful to provide a declarative way to set headers. This would make it easier to integrate tests into frameworks that don't use PHP, and would decrease the workload for the people who need to review the PHP files used in our tests. An approach that works well for Mozilla is documented at <https://developer.mozilla.org/En/Httpd.js/HTTP_server_for_unit_tests#Header_modification_for_files>.
Note that XMLHttpRequest tests are using PHP.