You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by CASTELLE Thomas <tc...@generali.fr> on 2004/01/05 15:34:00 UTC

Possibility to unset or modify some HTTP headers with mod_headers ?

Hi there !

Just a small question, is it possible in a HTTP response to unset or modify
the Date and Content-Type header with mod_headers ? I can't manage to do it
and I'm wondering if there's not a restriction on some Headers...

Thanks in advance !

Thomas.



Re: Possibility to unset or modify some HTTP headers with mod_headers ?

Posted by Stas Bekman <st...@stason.org>.
CASTELLE Thomas wrote:
> Hi there !
> 
> Just a small question, is it possible in a HTTP response to unset or modify
> the Date and Content-Type header with mod_headers ? I can't manage to do it
> and I'm wondering if there's not a restriction on some Headers...

I haven't used mod_headers, so I can't tell whether they do what you want, but 
if you use Apache 2 / mod_perl 2 combo you can easily modify response headers 
using mod_perl filter Apache::Filter::HTTPHeadersFixup available from CPAN:
http://search.cpan.org/dist/Apache-Filter-HTTPHeadersFixup/
You are given an array of headers, and you can manipulate them in any way you 
want, adding/modifying/removing headers.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com