[BUG] CGI param does not reset

[BUG] CGI param does not reset

am 16.01.2009 19:34:36 von john.theung

Hello,
I just built a new vanilla server, Apache/2.0.63 (Unix) mod_perl/2.0.4
Perl/v5.8.0 under Solaris 10.
I noticed that the $cgi->param does not reset in the mod_perl
directories. When I run the following program, it works fine under the
standard cgi-bin, but produces what appears to be cached results under
mod_perl:

Program:
use CGI;
my $cgi=3Dnew CGI;
print $cgi->header;
print " link =
2
(with x)
x=3D".$cgi->param('x')."
\n";
print "REQUEST_URI:$ENV{REQUEST_URI}
\n";
print "QUERY_STRING:$ENV{QUERY_STRING}
\n";
print "CGI Version: $CGI::VERSION";

Under my mod_perl directory, if I click the "link 2" I get this:
link 1 (no x) link 2 (with x) x=3D1
REQUEST_URI:/gciti/test.pl?x=3D1
QUERY_STRING:x=3D1
CGI Version: 2.91

When I click "link 1," I get this:
link 1 (no x) link 2 (with x) x=3D1
REQUEST_URI:/gciti/test.pl
QUERY_STRING:
CGI Version: 2.91

Notice that "1" continues to show up in "x=3D1".

If I wait a few minutes or repeatedly click link 1, it eventually clears
up:
link 1 (no x) link 2 (with x) x=3D
REQUEST_URI:/gciti/test.pl
QUERY_STRING:
CGI Version: 2.91

It doesn't matter which CGI version I use. Here is my mod_perl location
configuration in httpd.conf:

SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI


I appreciate any help you can offer. My searches come up empty on this.
Thanks,
JT