perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <phark...@gmail.com>
Subject Re: Bug with cgi->header() + mod_perl ?
Date Fri, 13 Feb 2009 00:55:00 GMT
On Tue, Feb 10, 2009 at 10:44 PM, Patrick Galbraith <patg@patg.net> wrote:
> After looking at it in gdb, I noticed it has something to do with
> Apache2::RequestRec, the header in particular.

My guess is that you're keeping an old CGI or $r object around between
requests, or that this is some kind of special scenario where CGI.pm's
reset_globals is not being called.

> I use the line: $vars= $cgi->Vars();
>
> And then access form parameters as $vars->{param}...
>
> Sometimes they submit correctly, other times they don't. I have a couple GET
> links and GET parameter parsing seems particularly erratic on cgi->header()
> is taken out.

That also fits with my guess.  Want to show us how you initialize your
$cgi object?

- Perrin

Mime
View raw message