Re: [mp2] how to redirect POST data

[prev] [thread] [next] [Date index for 2004/12/15]

From: Joe Schaefer
Subject: Re: [mp2] how to redirect POST data
Date: 02:50 on 15 Dec 2004
Beberle <beberle_2000@xxxxx.xxx> 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]                                  ^
                                                    ^
                                                (mod_apreq)


mod_apreq is a request filter which gets inserted into the 
pipeline whenever someone makes a certain libapreq2 library 
function call. In the mp2 case, that happens whenever
someone invokes Apache::Request::new.

Through mod_apreq,  libapreq2 is able to parse the POST data 
without removing the data from the pipeline.  If it needs to,
mod_apreq will drive the pipeline to pull more data through, 
but the data will remain in the pipeline for later filters/handlers
to see.  It's designed this way to allow Apache::Request to be 
usable in any pre-response-handler phase without losing the 
POST data.

        -- 
        Joe Schaefer


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

[mp2] how to redirect POST data
Beberle 10:43 on 13 Dec 2004

Re: [mp2] how to redirect POST data
Tom Schindl 12:02 on 13 Dec 2004

Re: [mp2] how to redirect POST data
Reenen C Kroukamp 12:44 on 13 Dec 2004

Re: [mp2] how to redirect POST data
Beberle 01:32 on 15 Dec 2004

Re: [mp2] how to redirect POST data
Joe Schaefer 02:50 on 15 Dec 2004

Re: [mp2] how to redirect POST data
Beberle 02:42 on 17 Dec 2004

Re: [mp2] how to redirect POST data
Joe Schaefer 04:45 on 17 Dec 2004

compile problems
Matthew Berk 07:05 on 17 Dec 2004

Re: compile problems
Stas Bekman 16:12 on 17 Dec 2004

Re: compile problems
Matthew Berk 14:44 on 20 Dec 2004

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52