On Wed, Apr 18, 2001 at 12:09:57PM -0700, Rob Bloodgood wrote:
> > I wonder, which Handler I would have to invoke to mangle or adjust the
> > response headers. I thought, this was the PerlFixupHandler. But
> > $r->headers_out seems to be completly empty.
>
> You can do this at any phase of the request, up to and including the content
> handler.
this makes no sense for me. Adjusting response field require a
server-generated response before. Adjusting meens: Read the fields, and if
some condition is true, change the fields.
> > use strict;
> > use Apache::Constants;
> > use Apache::Table;
> >
> > sub handler {
> > my $r = shift;
>
> $r->header_out( Sample => "value" );
> $r->header_out( Cookie => "$cookie");
> # etc...
This is good for setting. If I read them first, they are empty. When
are those set by the server?
> Use $r->header_out for individual headers. $r->headers_out is an
> Apache::Table, which is probably not what you are looking to mess with.
This should not be a problem, it is just another way to do it. Besides,
$r->header_out is not solving my problem :-)
Any more ideas?
Thanks, ~~~:-Jochen
--
A language that doesn't affect the way you think about programming is
not worth knowing.