Hello,

I'm writing an Apache::Registry and I can't seem to retrieve POST
information. I usually write handlers rather than Apache::Registry
scripts, so this is a mystery to me. From a sample form:

    <form method="post" action="post.pl">
     <input type="hidden" name="hello" value="world">
    </form>

To this simple Apache::Registry script:

    #!/usr/local/bin/perl
    my $r = Apache->request;
    print "Content-type: text/plain\n\n";
    print "Post = ( ", join(", ", $r->content), " )\n";

Gives me nothing. My second thought was that Apache::Registry was eating
the POST information to feed it to the script via STDIN (for compatibility
with conventional CGI), so I tried this:

    #!/usr/local/bin/perl
    use CGI ();
    my $cgi = new CGI;
    print "Content-type: text/plain\n\n";
    print "CGI = ( ",
        join(", ", map { ($_, $cgi->param($_)) } $cgi->param), " )\n";

The POSTed information has still gone away! Am I on crack?! This should be
the simplest script ever! Just to check, I ran the above script as a CGI
as the target of the same HTML form and it worked fine.

I'm using Perl 5.6.0, mod_perl 1.24_01, and Apache 1.3.14 on Solaris x86,
CGI.pm 2.56. The client I use doesn't seem to make a difference.

Humbly,

Andrew

----------------------------------------------------------------------
Andrew Ho               http://www.tellme.com/       [EMAIL PROTECTED]
Engineer                   [EMAIL PROTECTED]          Voice 650-930-9062
Tellme Networks, Inc.       1-800-555-TELL            Fax 650-930-9101
----------------------------------------------------------------------

Reply via email to