Skip Menu |

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 12040
Status: resolved
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.077
Fixed in: (no value)



Subject: POST data is lost under mod_perl2 and ModPerl::Registry
I've recently begun using CGI::Simple and have not had troubles with it under mod_perl1 on Linux. However, trying to use it with a POST action under mod_perl2 (2.0.0-RC4) is not working (GET works fine). The cgi_error gets set to '500 Bad read on POST! wanted 287, got 0'. If I change the SetHandler to cgi-script, it works fine. If I use CGI.pm with perl-script, it works fine. I'm using Perl 5.8.6 under FreeBSD 5.3. Thanks, William
With the new release of mp2, you may find yourself needing to figure out how to tell whether mp1 or mp2 is being used. Here's a snippet that was posted to the mod_perl list today which shows the way CGI.pm is handling things: if (exists $ENV{MOD_PERL}) { if ($ENV{MOD_PERL_API_VERSION} == 2) { $MOD_PERL = 2; require Apache2::Response; require Apache2::RequestRec; require Apache2::RequestUtil; require APR::Pool; } else { $MOD_PERL = 1; require Apache; } } William