Bug #16092 Updated: Ability to supress/delete HTTP headers (especially Content-Type)
| From: | rasmus@php.net | Date: | Fri, 15 Mar 2002 17:07:45 +0000 |
| Subject: | Bug #16092 Updated: Ability to supress/delete HTTP headers (especially Content-Type) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2593@lists.php.net to get a copy of this message | ||
ID: 16092
Updated by: rasmus@php.net
Reported By: jgirouard@macrowerx.com
-Status: Open
+Status: Analyzed
Bug Type: Feature/Change Request
Operating System: FreeBSD 4.2
PHP Version: 4.1.2
New Comment:
The problem is that when you use PHP as an Apache module, PHP is not in
control of the final headers. Apache is. Even if PHP didn't set a
content-type header, then Apache would add it. So this feature request
really should be sent to the Apache project for an enhancement of the
Apache API. The only time PHP is fully in control is when you run it
from the command line.
Previous Comments:
------------------------------------------------------------------------
[2002-03-15 12:04:12] jgirouard@macrowerx.com
No, I experimented with the header() function, but it does not do what
I need unless there is something about header() that is not
documented.
I need to be able to completely do away with all the conventional
headers. Something along the lines of header_delete("Content-Type")
would be great! :)
I guess what I'm looking for is a mod_php4 equivalent of the -q switch
in the command line version of php.
------------------------------------------------------------------------
[2002-03-15 10:00:54] sniper@php.net
http://www.php.net/manual/en/function.header.php
You can replace headers..is this enough?
--Jani
------------------------------------------------------------------------
[2002-03-15 04:37:26] jgirouard@macrowerx.com
I would like the ability send raw headers to Apache or web client, or
at least to delete headers before they are sent to the client.
As a developer, it is important to me to have the freedom to determine
which headers I need for my particular application. Having the
Content-Type header forced on me is really throwing a wrench in my
project.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16092&edit=1