John D.Lima wrote:
I have a proxy running with mod_proxy with a request output filter for examining the (remote) server response. Under certain conditions I want to add additional html to the server's error response, or replace a (possibly non-error) response with a dynamic error document of my construction, changed status included.
It'd be great if I could grab the filter's request and let $r->custom_response() do what I want, possibly adding an EOS bucket to the filter stream before passing the brigade on at the end of the filter handler.
I think the insert_error_filter hook introduced in 2.0.49 will do exactly what you want, but unfortunately mod_perl hasn't added the glue for this yet so we can't know for sure.
something to add to the todo list I suppose.
But John is talking about converting a non-error response into an error. Does it still apply?
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] 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