[cgiapp] Using CGI::Application with FastCGI and C::A::P::Redirect

Dan Horne dan.horne at redbone.co.nz
Fri May 23 15:35:28 EDT 2008


Hi Alex

As requested. You instance script should look something like:

#!/usr/bin/perl -w
use strict;
use FindBin qw($B
use Webapp;
use CGI::Fast();

while (my $q = new CGI::Fast){
    my $webapp = Webapp->new(
        QUERY  => $q,
    );
    $webapp->run();
}

In you application class simply put "return $self->redirect(<URL>)" in 
our runmodes as you would without FastCGI

Dan


More information about the cgiapp mailing list