I'm attempting to write an input filter that performs an internal redirect
based on the contents of the cookies sent in the request headers. The
problem I'm encountering is that the browser is receiving both the content
for the original request, as well as the content generated by the internal
red
On Thu 09 Oct 2008, Dan DeSmet wrote:
> I'm attempting to write an input filter that performs an internal
> redirect based on the contents of the cookies sent in the request
> headers.
Why an input filter? What you want is better done in a PerlTransHandler
or a PerlFixupHandler.
Torsten
--
Need
I took your advice and tried switching it over to a TransHandler. Now, the
beginning of the handler where I manipulate the cookies looks like this:
sub handler {
my $r = shift;
my $cookieString = $r->headers_in->get('Cookie');
...
}
I then do a check to see if the cookies exist; that
On Thu 09 Oct 2008, Dan DeSmet wrote:
> I took your advice and tried switching it over to a TransHandler.
> Now, the beginning of the handler where I manipulate the cookies
> looks like this:
>
> sub handler {
> my $r = shift;
> my $cookieString = $r->headers_in->get('Cookie');
> ...
>
Thanks for your help. Your confirmation led me to track down the real
problem, which is that I marked the cookies secure, and forgot to do https
rather than http in my browser URL. If not for your help, there's no
telling how long I would've spent trying to fix a problem in my code that
didn't ex