Mark Hedges wrote:

The question is, since the handler doing the preservation
and installing the input filter also instantiates an
Apache2::Request object, when it gets to the response phase
controller, will the response handler's Apache2::Request
instance read the replaced data or the cached data?


From what I understand, as soon as you try to use the body of a request using Apache2::Request, it reads it all in. Which might play havoc with the idea of using a Filter to modify a request / inject a body to replay an old post request.

However, without that complication it may be possible. Have you looked at the filter documentation on perl.apache.org? Particularly the examples in this section:

http://perl.apache.org/docs/2.0/user/handlers/filters.html#Input_Filters

My suggestion would be to try it and see what happens. Filters are one aspect of mp2 that it seems like a lot of people haven't really used. I personally have used OuputFilters for a bunch of things, but i haven't used InputFilters at all. I'm also not familiar enough with how OpenID works to really be able to comment on what you're trying to do.

Adam

Reply via email to