[cgiapp] Redirecting with CGI::App Problem (possibly mod_perl
related)
Cees Hek
ceeshek at gmail.com
Fri Jun 5 01:52:56 EDT 2009
You can only call $self->redirect in a prerun method or in a runmode. Are
you sure that is where you are calling it?
If you call it in init it will not work as expected.
Cheers,
Cees
On Tue, May 5, 2009 at 2:40 PM, Brad Van Sickle <bvs7085 at gmail.com> wrote:
> Thanks for the quick response!
>
> Unfortunatnly, if I use that method the rest of the script still executes
> and the redirect headers seem to print after the <html></html> tags
>
> <html>
> my templated html
> </body>
> </html>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>200 OK</title>
> </head><body>
> <h1>OK</h1>
> <p>The document has moved <a href="my_uri">here</a>.</p>
> <hr>
> <address>Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8
> mod_perl/2.0.4 Perl/v5.8.8 Server at xxx.xxx.xxx.49 Port 80</address>
> </body></html>
>
>
>
More information about the cgiapp
mailing list