http://www.perlmonks.org?node_id=1231238

evergreen has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I am using Apache2::Request to parse a multi-part Http post in a .mpl script running under apache mod_perl. The Http post comes from an upstream system.

Here is the relevant part of the script.

$r = shift; $cgi = Apache2::Request->new($r); $r->discard_request_body; # efficiently parses the request body my $parser_status = $cgi->param_status(); if ($parser_status ne 'Success') { $parser_error = $parser_status; }

The problem is that the call to param_status() returns "Internal apreq error" and further down in the script, it finds that an expected multi-part content is missing.

The post is retried by the upstream system until it succeeds, and after 10-15 retries it eventually succeeds, meaning there was no apreq error when it succeeded and the expected multi-part is present.

Is there any way to get more information about why there is an "Internal apreq error"?

Thanks.