John D.Lima wrote:
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 (integer)
    * ret: $ret (integer)



Looking at the source it appears that you can pass zero, perhaps to
prevent proxying of the current request?  That's what I'd like to do:

I have a PerlPostReadRequestHandler running on a proxy server (using mod_proxy)
that wants to intercept/handle various requests directly while proxying others
normally. To achieve this I currently match against the '$r->unparsed_uri()' and
actually clear PerlTransHandler ('$r->set_handlers(PerlTransHandler => undef);')
and set my response handler according to my match mapping.


I'd like to just call '$r->proxyreq(0)' to disable mod_proxy for this one request
and let my response handler do the right thing later on, but it seems to have no
effect. Any plans for this, or am I barking up the wrong tree here?

I think what you need is to fixup the $->filename and $r->uri as well. Let me write some tests and see whether this works.


__________________________________________________________________
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



Reply via email to