[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Need help with MIME-tools/Apache mod_perl/CGI
From: "Scott Scecina" <scotts () inmind ! com>
Date: 2001-03-29 22:21:31
[Download RAW message or body]
Hi,
I have discovered an interesting phenomenon using the following setup:
Windows 2000
ActivePerl 5.6/623
Apache 1.3.19/mod_perl 1.25_01-dev (Randy Kobes)
CGI.pm 2.74 (and/or CGI.pm 3.1)
MIME-tools 5.410
Basically, once mod_perl has "used" the MIME::Parser module, the CGI scripts
stop being able to receive POST'ed params... GET'ed params are received just
fine. The scripts are handled by Apache::Registry.
The versions shown above are the result of completely reinstalling my
development system after experiencing the problem with earlier versions of
ActivePerl and mod_perl/Apache. I haven't encountered the problem on Linux.
The following is a script that suffers from the phenomenon. Comment out
"use MIME::Parser", restart Apache, and it should work as expected.
use strict;
use CGI;
use MIME::Parser;
my $cgi = new CGI;
print $cgi->header;
if (defined $cgi->param('somefield')) {
print "Received 'somefield' = ", $cgi->param('somefield'), "<br>";
print $cgi->startform(),
$cgi->textfield(-name=>'somefield'),
$cgi->submit,
$cgi->endform;
} else {
print "Parameter 'somefield' not POSTed<br>";
print $cgi->startform(),
$cgi->textfield(-name=>'somefield'),
$cgi->submit,
$cgi->endform;
}
Anyone have any ideas?
Thank you,
Scott Scecina
In Mind, Inc.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic