[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: internal_redirect & ModPerlRegistry


Answering my own question ......... yes, it can only be called from content handlers.

But any advice on how I can achielve the same result from with cgi scrupts would be great.

Thank you.

Anthony Gardner <suppressed> wrote:
Can I only use internal_redirect in handlers or is it possible to use it within a cgi script calling another cgi script? All the docs I've seen have used handlers ......... I want to do something different ;)

As you know, OK has to be returned immediatly after the internal_redirect so that's telling me it's only used in handlers :(

I need to incorporate the output from the internal call into the contents of the external call.

I've tried internal_redirect but nothing is returned and the called script isn;t entered.

Or, is there another way to achieve the same thing without going through the outside world?

Any help would be greatly appreciated.

Here's a snippet of the offending code.

my $r = $self->_request_rec();
my $server_root = $self->server_root();
my $faq_path =  $server_root  . '/' . $path;

my $ret = $r->internal_redirect( $faq_path );


CIA

-Ants



New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.


What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.