perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: I'm lost, how do I get POST data in MP2?
Date Sun, 05 Dec 2004 17:57:16 GMT
Cristóvão Dalla Costa wrote:
> Hello
> 
> I must be missing something because I looked all over the docs and 
> couldn't find a method to retrieve POST form data.
> 
> I also tried CGI.pm and param(), but using that gives the following error:
> 
>    Can't locate object method "read" via package "Apache::RequestRec"
>    at (eval 16) line 5.\n, referer: http://localhost:8000/_admin/page/1
> 
> Please help, otherwise I'll have to waste a whole day installing Apache 
> 1 and adjusting our other applications to work with apache 1.
> 
> Versions: mod_perl2 1.99r17 (FreeBSD port)
> apache 2.0.52
> CGI.pm 3.0.5

You don't show the code that you have the problem with. Take a look at the 
tests:

t/response/TestModules/cgi2.pm
t/response/TestModules/cgi.pm
t/response/TestModules/cgipost2.pm
t/response/TestModules/cgipost.pm
t/response/TestModules/cgiupload2.pm
t/response/TestModules/cgiupload.pm

in the mp2 distribution, to see how to get POSTed data.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message