Response headers
| From: | Cristi Dumitrescu | Date: | Wed, 10 Jul 2002 15:57:01 +0000 |
| Subject: | Response headers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-85892@lists.php.net to get a copy of this message | ||
Hi,
Is there any way to see the outgoing headers for a PHP document? I mean not
only the headers I add via header(), but also the headers added by default
by apache, such as Keep-Alive, Connection, Content etc.
I need to count them and compute a traffic report for each PHP served and so
far I've been able to do it fairly easy with the request headers, but as far
as I could see, there is no way to read the outgoing headers in PHP.
It would be really useful if someone would implement something like this in
PHP and I suppose it's not that hard, given the fact that there already is a
server_context->headers_out, at least for apache.
Additionally, no idea if this is a bug or not, php_info() reports only a
single response header (X-Powered-By) if called within a ob_start();
ob_end_*(); block.
Please include me on CC if you answer, as I am not subscribed to the list.
Thanks,
Cristi