Click here to get back home

HTTP Header variables empty ( randomly ) with mod_perl

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTTP Header variables empty ( randomly ) with mod_perl lucl2000 11-18-2006
Posted by lucl2000 on November 18, 2006, 5:51 pm
Please log in for more thread options


Ok, I've troubleshot this for ages and now I'm turning to the experts.

I am testing out mod_perl on our site. I read all of the mod_perl docs
and guides and started with one script, index.cgi. I updated the script
to use strict and cleaned it up for mod_perl.

I then add it to httpd.conf like this:

LoadModule perl_module modules/mod_perl.so

<FilesMatch "^index\.cgi$">
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</FilesMatch>

index.cgi not works great. Actually 2 times faster... the problem is,
for some weird reason, some other scripts from time to time give an
error indicating that they didn't receive any POST variables on the
request.

If I disable mod_perl completely, we never have any problems.

The weird thing is that the other scripts on our site aren't even
configured under mod_perl. As you can see above, we only include
index.cgi.

Firstly, I am baffled a to how mod_perl is affecting other scripts
which aren't even under mod_perl. Can simply enabling mod_perl affect
other scripts?

Secondly, what could cause this to happen? Essentially, it seems that
all POST variables are empty. I hit refresh and it's fine. I get the
error roughly 1 in 75 times, it's very rare but under heavy load happen
alot more.

I can't consistently recreate the error and under httpd -X I can't
regenerate the error consistently either.

Please help!


Similar ThreadsPosted
Empty $r in mod_perl January 6, 2007, 5:42 am
Mega-Widget with two entry's and two variables March 10, 2005, 2:22 pm
Mason sharing variables, rookie alert :) July 13, 2006, 10:51 am
CGI::AJAX and header June 16, 2006, 4:06 pm
Parsing AVI header information June 8, 2008, 11:08 pm
IIS + Cache + W2003 + HTML header problem May 8, 2006, 8:24 am
CGI.pm and ModPerl::Registry December 21, 2007, 11:20 pm
modperl and apache handlers December 28, 2004, 5:38 am
CPAN conflict issue - CGI.pm vs ModPerl::Registry September 25, 2006, 12:42 pm
XML-RPC over HTTP with SSL January 17, 2005, 10:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap