Ask a Question related to PERL Modules, Design and Development.
-
lobo_nz #1
CGI.pm/modperl2 and intermittent missing POST data
After upgrading to Apache2 with modperl2 I have found that a CGI script
I have used without any trouble for years has develped the annoying
problem of intermittently returning to the initial page.
As far as I can figure out the POST data is not getting to the script.
The problem is intermittent and sometimes takes 10 minutes of using the
script to get the anomaly, I say anomaly as there is no error messages
in the Web server log and the perl script executes without error simply
providing the login screen as no POST data gets through, refreshing the
browser once or twice will result in the POST data making it to the
script.
After allot of googling there seems to be a quite few 'missing POST
data' results, some are related to older CGI.pm modules, however I have
the very latest CGI.pm 3.20 , installed to try and fix the problem with
no luck, other results vaguely mentioned CGI.pm and modperl2 not
playing nicely like this article
[url]http://aspn.activestate.com/ASPN/Mail/Message/modperl/1871810[/url]
which says "something is funky with the way that CGI.pm is initialising
itself under mod_perl" which isnt much help.
There seems to be no definitive answer or fix for this, so far my
choices are:
Hopefully someone can help me out otherwise I am going to have to
downgrade my server and/or rewite allot of code.
lobo_nz Guest
-
#22427 [Com]: Missing Form Post Data
ID: 22427 Comment by: zero at tilt dot eu dot org Reported By: jroland at uow dot edu dot au Status: No... -
#24013 [Com]: Missing Form Post Data
ID: 24013 Comment by: michael dot lindner at gmlindner dot de Reported By: webmaster at dtshowtime dot lu dot eu dot org... -
#24753 [Opn->Fbk]: missing character in POST data
ID: 24753 Updated by: iliaa@php.net Reported By: robin at newloop dot com -Status: Open +Status: ... -
#24753 [Opn->Bgs]: missing character in POST data
ID: 24753 Updated by: derick@php.net Reported By: robin at newloop dot com -Status: Open +Status: ... -
#24753 [Fbk->Opn]: missing character in POST data
ID: 24753 User updated by: robin at newloop dot com Reported By: robin at newloop dot com -Status: Feedback... -
lobo_nz #2
Re: CGI.pm/modperl2 and intermittent missing POST data
Well, I removed mod-perl2 and reverted the mod-perl scripts to CGI and
all works great, I still want to know what is going on with CGI.pm and
mod_perl2 :\
lobo_nz Guest
-
Tom #3
Re: CGI.pm/modperl2 and intermittent missing POST data
lobo_nz wrote:Nine times out of ten this is caused by the CGI script remembering> Well, I removed mod-perl2 and reverted the mod-perl scripts to CGI and
> all works great, I still want to know what is going on with CGI.pm and
> mod_perl2 :\
variables from a previous session, since mod_perl keeps the CGI program
in memory and the script no longer initialized between calls. Standard
mod_perl technique requires that you always turn on strict pragma (use
strict; ) and develop with warnings pragma (use warnings;).
Good information on porting CGI to mod_perl is under
[url]http://perl.apache.org/docs/1.0/guide/porting.html[/url]
Tom
Tom Guest



Reply With Quote

