Re: Edit HTTP response headers
On Mon 21 Apr 2008, J Amuse wrote:[color=blue]
> I wrote a simple module that parses the HTTP response body and updates
> certain text. I want the script to be able to parse and manipulate the HTTP
> response headers as well. For example add secure and HttpOnly flags to
> certain cookies, or add a redirection when a 500 error code is returned.[/color]
You can modify outgoing headers up to the time they are sent. So, at the very
first call to your filter you can modify the status code as well as outgoing
headers. See Apache2::POST200 on CPAN.
Need professional mod_perl support?
Just hire me: [email]firstname.lastname@example.org[/email]