Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

dbf2mysql parameter, WWWXXXAPC, wwwxxxAPC, How to unsubscrube from dategen spam, docmd.close 2585, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text

Links

XODOX
Impressum

#1: reading yet preserving request body

Posted on 2008-04-22 01:05:14 by John ORourke

Hi folks,

I have an MVC-style system which passes the request object to various
modules until one of the 'accepts' it.

I'm using Apache2::Request to parse incoming form parameters which is fine.

The problem is that some of these modules want to read XML or Multipart
MIME from the request body, but of course Apache2::Request wants to read
it too. If I create my Apache2::Request object, then use $r->read() to
read the body, then call discard_request_body(), will I be able to have
my cake and eat it?

thanks
John

Report this message