> Apache::RequestNotes don't work because Apache::Registry expect to
read the
> POST/PUT-data from STDIN.
>
> It's important that the cgi-scripts run unmodified and without any
notice of
> their "unnaturally" environment.

I don't think there's any way around the fact that you can only read the
content once.  That means you need to read and store it for other
handlers to use, which is what Apache::RequestNotes does.
Alternatively, you could add something to your Registry script that
stuffs the parsed values into pnotes yourself after using them.  If you
put that inside a block that checks for $ENV{'MOD_PERL'}, you'll still
be able to run the script safely under standard CGI.

It also looks like you're re-inventing Apache::Filter or
Apache::OutputChain.  Have you tried them?

- Perrin



Reply via email to