Re: APR::Request::Apache2 param() method

Joe Schaefer <[email protected]>
Newsgroups gmane.comp.apache.apreq
Message-ID <[email protected]>
Dave Viner <[email protected]> writes:

> Hi,
>
> I am having a strange problem with APR::Request::Apache2 and the param
> () method.  When I send a POST from Firefox, my code works perfectly.  When I
> send a POST from Safari or Windows/IE, my code fails.
>
> Here is the HTML which displays the form to send:
>         <form name="delete_alert" action="/mailing_list/remove" method="post"
> enctype="multipart/form-data">
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Have you tried it with the default enctype?

>         <input type="hidden" name="alerts_id" value="1234" />
>         <input type="hidden" name="alerts_email" value="[email protected]">
>         <input type="submit" name="submit" value="Remove">
>         <input type="button" name="cancel" value="Cancel"
> onclick="document.location='/'; return false;">
>         <br class="clearing">
>         </form>
>
> Here is the Perl code which handles this request:
>
>     my $req = APR::Request::Apache2->handle($r);

Try adding

      $r->discard_request_body;

here, and then see what the body_status is.
(The code didn't croak, so I don't think you're getting
an error, but let's see anyhow).

-- 
Joe Schaefer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.