[cgiapp] Calling redirect under CA::Dispatch and mod_rewrite

Gurunandan R. Bhat guru at informationmatters.in
Wed Dec 1 22:50:51 EST 2010


The problem was that I had my application to use CGI qw/:cgi/ in my
cgiapp_get_query.

I changed it to use CGI::Simple and everything works as expected. 

I had mistakenly assumed that importing the :cgi set from CGI would be
OK, but it seems to break many things.

Thank you for your attention


On Wed, 2010-12-01 at 14:16 -0500, Mark Stosberg wrote:
> On 11/26/2010 04:07 PM, Gurunandan R. Bhat wrote:
> > Hi,
> > 
> > I am moving my application to work under CA::Dispatch and using
> > mod_rewrite to hide the dispatch script (index.cgi) from the URL. 
> > 
> > I am using rewrite rules .htaccess copy-pasted (without change) from the
> > CA::Dispatch man page and I am getting some very strange results when I
> > try to use redirect() with the CAP::Redirect plugin. Here is what I
> > find:
> > 
> > 1. Most redirects give me a 302 (Document Moved) with the text: "The
> > Document has moved <a href="App::User=HASH(0x170ec98)">here</a>"
> > 2. Some redirects give me a page with valid HTML but with two headers
> > the last being the 302 page (example above in 1.)
> > 
> > Is there something about using redirects under CA::Dispatch that I am
> > missing? 
> 
> Could you share a reduced-case code example that produces the bad behavior?
> 
>    Mark
> 
> 
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################
> 




More information about the cgiapp mailing list