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