Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Mod_perl errors filling up apache logs

by Anonymous Monk
on Nov 20, 2012 at 22:23 UTC ( #1004811=note: print w/ replies, xml ) Need Help??


in reply to Mod_perl errors filling up apache logs

What could be causing this?

Your code :) For some reason it keeps getting reloaded, and/or it keeps re-importing Apache constants ( odd choice for someone using ModPerl::PerlRun )

Fix your code, follow CGI to mod_perl Porting. mod_perl Coding guidelines


Comment on Re: Mod_perl errors filling up apache logs
Re^2: Mod_perl errors filling up apache logs
by ubertricep (Initiate) on Nov 30, 2012 at 13:00 UTC

    Well I have pinpointed the problem. It's a problem with LWP::UserAgent and LWP::Simple.

    Here is a some sample code. It acts as a post proxy. Every time this is ran I get 50 or so error messages as above.

    use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent("send"); # Create a request my $req = HTTP::Request->new(POST => 'http://signup.website.com/in +dex.pl?action=signup'); $req->content_type('application/x-www-form-urlencoded'); use URI::Escape; my $username = uri_escape($CGI->param('username')); my $email = uri_escape($CGI->param('email')); my $password = uri_escape($CGI->param('password')); my $name = uri_escape($CGI->param('name')); my $recaptcha_response_field = uri_escape($CGI->param('recaptcha_r +esponse_field')); my $recaptcha_challenge_field = uri_escape($CGI->param('recaptcha_ +challenge_field')); my $affiliate_key = uri_escape($CGI->param('affiliate_key')); $req->content("username=$username&email=$email&password=$passwor +d&name=$name&recaptcha_response_field=$recaptcha_response_field&recap +tcha_challenge_field=$recaptcha_challenge_field&affiliate_key=$affili +ate_key&sitetype=clan"); # Pass request to the user agent and get a response back my $res = $ua->request($req); # Check the outcome of the response print $CGI->header(-type => "text/html"); if ($res->is_success) { print $res->content; }else { print $res->status_line, "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-07-04 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls