perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sterpu Victor <vic...@casnt.ro>
Subject POST not working
Date Sun, 15 Jan 2012 19:04:10 GMT
POST method is not working when I use Apache::ASP.
My setup is like this:
- global.asa

    use CGI;
    our ($cgi);
    sub Script_OnStart {$cgi = new CGI;}
    sub Script_OnFlush {}

- Apache containts the following setup for ASP

    AddHandler cgi-script .cgi
    <Files ~ (\.cgi)>
          AddHandler perl-script .cgi
          PerlHandler Apache::ASP
    </Files>
    PerlSetVar Global /tmp

- and my test script "test_post.cgi"

    <%
    use CGI;
    print "[1]test is ".$cgi->param("test")."<br>";
    print "
    <form action=test_post.cgi method=post>
    <input type=text name=test>
    <input type=submit>
    </form>
    ";
    %>

When I run the script I should get the value of the test variable but 
$cgi->param("test") is always empty.
GET method is working fine.
How can I fix this?

Thanj you.

Mime
View raw message