You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by dorian taylor <do...@foobarsystems.com> on 2004/08/13 00:13:18 UTC
libapreq and filters
suppose i wanted to significantly alter the structure of a POST
request via Apache::Request, but i wanted to re-inject the request
body back into the input bucket brigade to be processed by a later
module? i'm thinking something like this:
POST from client
Apache::Request-based handler consumes request body entirely
"" creates document based on POSTdata
"" changes request method to PUT
"" inserts new document back into stream
mod_put_xxxx takes document to be PUT and PUTs it somewhere
is this kind of thing possible in any way?
.dorian
--
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
Re: libapreq and filters
Posted by Stas Bekman <st...@stason.org>.
dorian taylor wrote:
> suppose i wanted to significantly alter the structure of a POST
> request via Apache::Request, but i wanted to re-inject the request
> body back into the input bucket brigade to be processed by a later
> module? i'm thinking something like this:
>
> POST from client
>
> Apache::Request-based handler consumes request body entirely
> "" creates document based on POSTdata
> "" changes request method to PUT
> "" inserts new document back into stream
>
> mod_put_xxxx takes document to be PUT and PUTs it somewhere
>
> is this kind of thing possible in any way?
Use a subrequest?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
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