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

I can't seem to get Apache (1.3.22) to accept POST requests under mod_perl.
When I look at the access log, its labeled 'POST', but when I have the script shoot the $ENV{'REQUEST_METHOD'} back at me, it comes up as 'GET'.

What's going on here?

Replies are listed 'Best First'.
Re: mod_perl/Apache/POST
by ask (Pilgrim) on Nov 19, 2001 at 16:12 UTC
    Uh, what sounds odd. What does
    my $r = Apache->request; warn "method: ", $r->method;
    say?

    Are you writing it as a Apache::Registry script or as a proper PerlHandler? If a PerlHandler, which kind? Content handler (PerlHandler) or something else (Perl*Handler)?

     - ask

    -- 
    ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
    
Re: mod_perl/Apache/POST
by BMaximus (Chaplain) on Nov 19, 2001 at 16:17 UTC
    Could you please post the code you are using as well as whether you are using Apache::Registry or the handler method? Also any errors if applicable.

    BMaximus
Re: mod_perl/Apache/POST
by Hero Zzyzzx (Curate) on Nov 19, 2001 at 20:59 UTC

    Please also post as to whether or not you're using a pre-compiled "all in one" binary apache/mod_perl thingy. In the past, NuSphere had bugs that kept POST from working properly.

    POST also has to be allowed/can be disallowed in your httpd.conf (in <LIMIT> containers, I think). We may be getting into non-perl territory here, though.

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.