Re: [mp2] custom_response() in HTTP Request Output Filters?

2004-03-31 Thread John D . Lima
On Mar 31, 2004, at 11:46 AM, Geoffrey Young wrote: Under certain conditions I want to add additional html to the server's error response But John is talking about converting a non-error response into an error. Does it still apply? I don't know. it was the above quoted part that caught my atte

Re: [mp2] custom_response() in HTTP Request Output Filters?

2004-03-31 Thread John D . Lima
On Mar 31, 2004, at 10:04 AM, Stas Bekman wrote: 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-e

[mp2] custom_response() in HTTP Request Output Filters?

2004-03-31 Thread John D . Lima
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, chan

Re: [mp2] PerlPreConnectionHandler and subrequests detection?

2004-03-13 Thread John D . Lima
On Mar 12, 2004, at 5:12 PM, Stas Bekman wrote: John D.Lima wrote: *snip* For clarity (?): my PerlPreConnectionHandler works great on browser requests coming into the proxy, but it runs again when the server response to the proxied request returns _to the proxy_. In this server response case I

[mp2] PerlPreConnectionHandler and subrequests detection?

2004-03-12 Thread John D . Lima
I have a PerlPreConnectionHandler running on a proxy vhost (w/ mod_proxy), acting much like the User Guide example that blocks clients by their IP. I'd like it to behave differently if the connection of due to a subrequest or not. For clarity (?): my PerlPreConnectionHandler works great on brows

Re: [mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread John D . Lima
On Feb 19, 2004, at 12:35 PM, Stas Bekman wrote: *snip* I have a PerlPostReadRequestHandler running on a proxy server (using mod_proxy) that wants to intercept/handle various requests directly while proxying others normally. [...] I'd like to just call '$r->proxyreq(0)' to disable mod_proxy for t

[mp2] arg for Apache::RequestRec::proxyreq()

2004-02-19 Thread John D . Lima
Hi, [Apache 2.0.48/mod_perl 1.99_12, linux (debian) 2.4.x] Anyone using the $val arg for Apache::RequestRec::proxyreq(), per http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_proxyreq_ ? synopsis: $ret = $r->proxyreq($val); * arg1: $r (Apache::RequestRec) * arg2: $val (intege