httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+apa...@sunstarsys.com>
Subject Re: APR::Request::Apache2 param() method
Date Tue, 30 Jan 2007 20:49:49 GMT
Dave Viner <daveviner@pobox.com> 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="test@example.com">
>         <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

Mime
View raw message