RE: [cgiapp] Re: CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Dan Horne
> From: Mark Stosberg > Sent: Wednesday, 13 December 2006 11:34 a.m. > > Dan Horne wrote: > > Perhaps this could be added to > CGI::Application::Plugin::Redirect if > > Cees is amenable? > > I think that's a great idea, but this option should perhaps > have a different name or option, because

Re: [cgiapp] CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Michael Peters
Dan Horne wrote: > Perhaps this could be added to CGI::Application::Plugin::Redirect if Cees is > amenable? I'm not sure that should happen automatically if running under mod_perl. Doing a normal HTTP redirect will send all HTTP headers to the browser and any new cookies will be available to th

[cgiapp] Re: CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Mark Stosberg
Dan Horne wrote: >> From: Mark Stosberg >> Sent: Wednesday, 13 December 2006 11:12 a.m. >> >> I just discovered mod_perl's internal_redirect method. > > Snip > >> The code is also rather simple: >> >> if ($ENV{MOD_PERL}) { >> my $r = Apache->request; >> $r->intern

RE: [cgiapp] CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Dan Horne
> From: Mark Stosberg > Sent: Wednesday, 13 December 2006 11:12 a.m. > > I just discovered mod_perl's internal_redirect method. Snip > The code is also rather simple: > > if ($ENV{MOD_PERL}) { > my $r = Apache->request; > $r->internal_redirect($url); >

Re: [cgiapp] CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Michael Peters
Mark Stosberg wrote: > I just discovered mod_perl's internal_redirect method. I was looking for > something like that for a routine that looks up some details and then > redirects to an image file. > > From benchmarking, it's only 2% slower than directly fetching the image > file, and 7% faster

[cgiapp] CGI::App and mod_perl's internal redirect function

2006-12-12 Thread Mark Stosberg
I just discovered mod_perl's internal_redirect method. I was looking for something like that for a routine that looks up some details and then redirects to an image file. >From benchmarking, it's only 2% slower than directly fetching the image file, and 7% faster than using an external direct. Fur