Hi list, I'm having a problem with my perl scripts after I ported them into a new server environment. My server environment:
Apache2 2.0.55 Perl 5.8.3 CGI 3.15 mod_perl 2.0.2 What is happening is that _occasionaly_ (maybe 1 out of 20 times) the POST data users send by their browser to my perl scripts is not arriving. Instead my parameters stay empty. When I look into the environment variables I can see that the CONTENT_LENGTH returns the right value for the data ought to arrive. For the errorprone calls I also used CGI::Batch to look into the POST data and still it was empty. It is very hard to reproduce the error intentionally - e.g. when I refresh a POST call to my perl script 50 times it happens that the 51st time the data is gone and the 52nd time everything is fine again. The used code looks like this: print "Content-type:text/html\n\n"; use CGI qw/:standard/; use CGI::Carp 'fatalsToBrowser'; my $query = new CGI; my $name = $query->param('name'); my $pass = $query->param('pass'); The environment variables of an exemplary call returning empty post data like this: SCRIPT_NAME=... SERVER_NAME=... HTTP_REFERER=... SERVER_ADMIN=... HTTP_ACCEPT_ENCODING=gzip, deflate HTTP_CONNECTION=Keep-Alive REQUEST_METHOD=POST CONTENT_LENGTH=35 HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-powerpoi nt, application/vnd.ms-excel, */* SCRIPT_FILENAME=... SERVER_SOFTWARE=Apache/2.0.55 (Unix) mod_perl/2.0.2 Perl/v5.8.3 QUERY_STRING= REMOTE_PORT=61160 HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) SERVER_PORT=80 SERVER_SIGNATURE=<address>Apache/2.0.55 (Unix) mod_perl/2.0.2 Perl/v5.8.3 Server at ...</address> HTTP_CACHE_CONTROL=no-cache HTTP_ACCEPT_LANGUAGE=de HTTP_COOKIE=... REMOTE_ADDR=217.85.246.87 CONTENT_TYPE=application/x-www-form-urlencoded SERVER_PROTOCOL=HTTP/1.1 PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin REQUEST_URI=... GATEWAY_INTERFACE=CGI/1.1 SERVER_ADDR=... DOCUMENT_ROOT=... HTTP_HOST=... I should mention that the same scripts performed without any errors in my earlier server environment which I unfortunately cannot reference to with exact version numbers - for sure I know only that it was an Apache 1.3 withd mod_perl < 2 ... Any feedback is appreciated, Thomas -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner