eps com estem wrote:
> Hi.
> I want to redirect to some uri one page. This can be accomplished easily in
> PerlTransHandler with $r-> uri($new_uri);
> My problem is that this uri needs to be parsed again with the same module 
> responsible of
> that. This is, i have a web page parse by module X that has to redirect to another 
> uri
> that has to pass again by module X at the same PerlTransHandler phase.
> 
> So $r-> uri($new_uri); does not work because the new uri goes on after the
> PerlTransHandler phase, and it's not valid for me.

> None of this options has worked. What i am doing wrong? What i use in the past was a 
> rude
> javascript printed in the web page that redirected automatically to the url. Now i 
> want to
> use the modperl api to do it.

I'm afraid I don't fully understand what you are trying to do, but it sounds
as though $r->internal_redirect() is what you are after - it essentially
mimics a browser redirect, placing the new request through the entire
request cycle (including the PerlTransHandler) but without telling the
browser about it.

HTH

--Geoff

-- 
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