httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graham Dumpleton" <graham.dumple...@gmail.com>
Subject Re: nothing in the r->headers_out?
Date Thu, 07 Jun 2007 02:14:23 GMT
On 07/06/07, Zeus Capricorn <zeus19860114@gmail.com> wrote:
> Thank you for your reply.
>
> But when i use telnet to get the page, httpd server does response some
> response headers(e-tag,etc.),and these headers are not in the page source.
>
> Does httpd server append the response headers after the handler phrase ?

Yes, there are some headers which are added by the HTTP_HEADER output
filters for HTTP requests. See ap_http_header_filter() in
modules/http/http_filters.c file.

I think it adds them to headers_out to prepare them for writing, so
one way to force it to be done is to write a separate blank line and
flush it, so that headers are created and written, before actually
creating your content which shows all the headers in headers_out.

Graham

Mime
View raw message