Re: Post data with Apache2::Request

2008-05-25 Thread Ben van Staveren
On May 26, 2008, at 9:40 AM, Foo JH wrote: kropotkin wrote: Hi I am trying to obtain POST data from a form. Try LWP::UserAgent to post forms instead. It's quite easy to use. Read the subject again. Epic fail at reading comprehension. He's not trying to post forms anywhere, he's trying to

Re: Post data with Apache2::Request

2008-05-25 Thread Foo JH
kropotkin wrote: Hi I am trying to obtain POST data from a form. Try LWP::UserAgent to post forms instead. It's quite easy to use.

Re: Post data with Apache2::Request

2008-05-25 Thread kropotkin
Hi Tyler Solved! I didn't and should have said I am using Mason. It looks like Mason gobbled up the POST data. (This must an example of the problem I see mentioned that the POST data can only be read once). I can then get the POST data from a Mason variable %ARGS. regards Justin kropotkin wr

Re: Post data with Apache2::Request

2008-05-25 Thread kropotkin
Hi Tyler The cpan docs say $req->body('field_name') for POST data and seem to imply $req->param('field_name') for GET data. Neither work. I reinstalled libapreq . I had the same problems with Apache::Request. Could never get POST data out of that though I could get GET data. Looks like back

Re: Post data with Apache2::Request

2008-05-25 Thread Tyler Gee
On Sat, May 24, 2008 at 4:57 PM, kropotkin <[EMAIL PROTECTED]> wrote: > > Hi > > I am trying to obtain POST data from a form. > > I have these lines: > > my $req = Apache2::Request->new($r); > my $email = $req->body('email'); my $email = $req->params('email'); > > My form contains a field called

Re: post data

2007-09-15 Thread Issac Goldstand
I'd personally go with Apache2::Request (for the fast C parsers). CGI.pm is useful if you need more portable code (although Apache2::Request could be used for normal CGI these days if APR is available) Issac Eli Shemer wrote: > Hey there. > > > > I yesterday compiled and installed apache2

Re: post data

2007-09-14 Thread André Warnier
Currently I'm using Apache::RequestRec in my tests but it only supports the args method which doesn't fit my needs, cross project. > I've read through the docs and saw that I have two available options: 1. using libapreq's Apache2::Request And then something like $apr->param('var') wou

Re: post data

2007-09-14 Thread Jim Brandt
In the mod_perl 2 book, I believe we recommend using your first option, which is the param method from Apache2::Request. Jim Eli Shemer wrote: Hey there. I yesterday compiled and installed apache2 on our company's server but it's currently on port 8080 for further testing. I'm curren

RE: POST data missing

2005-10-26 Thread Saurabh Soni
:10 AM To: modperl@perl.apache.org Subject: Re: POST data missing Good morning, On 21/10/05 at 7:37 PM +0530, Saurabh Soni <[EMAIL PROTECTED]> wrote: >I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which >serves POST requests by an external application. Each POST

Re: POST data missing

2005-10-23 Thread Charlie Garrison
Good morning, On 21/10/05 at 7:37 PM +0530, Saurabh Soni <[EMAIL PROTECTED]> wrote: >I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which >serves POST requests by an external application. Each POST request has some >parameters which are required for further processing. The prob

Re: POST data missing

2005-10-21 Thread Philip M. Gollucci
Saurabh Soni wrote: Hi experts, I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which serves POST requests by an external application. Each POST request has some parameters which are required for further processing. The problem is that CGI::param is unable to give me a param