35 messages in org.apache.perl.modperlRe: [mp2] how to redirect POST data
FromSent OnAttachments
BeberleDec 13, 2004 2:43 am 
Tom SchindlDec 13, 2004 4:02 am 
Reenen C KroukampDec 13, 2004 4:44 am 
BeberleDec 14, 2004 5:32 pm 
Joe SchaeferDec 14, 2004 6:49 pm 
BeberleDec 16, 2004 6:42 pm 
Joe SchaeferDec 16, 2004 8:44 pm 
Matthew BerkDec 16, 2004 11:05 pm 
Stas BekmanDec 17, 2004 8:11 am 
Barksdale, RayDec 17, 2004 8:57 am 
Joe SchaeferDec 17, 2004 10:27 am 
Stas BekmanDec 17, 2004 10:38 am 
Barksdale, RayDec 17, 2004 11:04 am 
Stas BekmanDec 17, 2004 11:25 am 
Barksdale, RayDec 17, 2004 1:04 pm 
Stas BekmanDec 17, 2004 1:19 pm 
Barksdale, RayDec 17, 2004 3:37 pm 
Stas BekmanDec 17, 2004 3:44 pm 
Matthew BerkDec 20, 2004 6:43 am 
Barksdale, RayDec 22, 2004 7:19 am 
Stas BekmanDec 22, 2004 12:27 pm 
Barksdale, RayDec 22, 2004 12:37 pm 
Stas BekmanDec 22, 2004 1:16 pm 
Barksdale, RayDec 22, 2004 2:01 pm 
Stas BekmanDec 22, 2004 2:22 pm 
Barksdale, RayDec 22, 2004 3:06 pm 
Stas BekmanDec 22, 2004 4:01 pm 
Barksdale, RayDec 28, 2004 2:50 pm 
Stas BekmanDec 28, 2004 3:01 pm 
Barksdale, RayDec 28, 2004 3:14 pm 
Stas BekmanDec 28, 2004 3:17 pm 
Barksdale, RayDec 28, 2004 3:50 pm 
Joe SchaeferDec 28, 2004 5:29 pm 
Barksdale, RayDec 29, 2004 8:59 am 
Stas BekmanDec 29, 2004 9:21 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [mp2] how to redirect POST dataActions...
From:Beberle (bebe@yahoo.com)
Date:Dec 16, 2004 6:42:00 pm
List:org.apache.perl.modperl

--- Joe Schaefer <joe+gma@sunstarsys.com> wrote:

Beberle <bebe@yahoo.com> writes:

Right, that's exactly the problem I'm trying to work around. Once I've read the POST data, is there some way to re-POST it?

Not sure this is addressing your particular problem, but let me try to explain how Apache::Request tries to resolve this sort of thing in mp2.

apache 2.x has filters, which can be plugged into the I/O chain just about anywhere. So if you think of the HTTP request as a pipeline between the user-agent and apache's response-handler

[user-agent] -> [intermediate web proxies] -> [apache server] ->

[connection filters] -> [protocol filters] -> [request filters] ->

^ [response-handler]

Ok, I'm getting closer but still not there yet. I've added a filter like so:

PerlInputFilterHandler Apache::RedirectPost

Its purpose is to grep the POST data for certain key value pairs and if it matches, set some flag (cookie or header). Then a handler down the chain can, in theory, take some action based on this flag.

I also have these declarations:

PerlAccessHandler Apache::GateKeeper PerlTransHandler Apache::DefaultTrans PerlHandler Apache::Content

I've been able to successfully capture the POST data without removing it from the chain. Problem is, it's too late. From what I've been able to gather from printing to the error log, the chain looks like this:

PerlTransHandler --> PerlAccessHandler --> PerlHandler --> PerlInputFilterHandler

I thought the filter was accessed before the response-handler. What am I doing wrong?