Re: Internal REDIRECT : $r->is_initial_req() false but $r->main() undef

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Monday 03 May 2010 14:53:23 Cédric Bertolini wrote:
> Is there another way to access the main request ?
> 
No, $r->main is the only way to get the main request.

But an internal redirect is a different thing. It is not a subrequest. Hence 
$r->main is undef.

You are looking for $r->prev. It gives you the req object before to the 
redirect.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.