Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Apache2::Request
 

Index | Next | Previous | View Flat


pinate11 at yahoo

May 23, 2008, 1:49 AM


Views: 545
Permalink
Apache2::Request

Hi,

I am trying to use mod_perl2 with Apache2::Request. My intention is to get
parameter value of post method. As described in its document and previouse
threads said to cache the data with post method...
"....Use Apache2::Request in the auth handler, and apreq
will do the SOMETHING you need automatically."

My existing code i.e. handler begins with
sub my_handler {
my $self = shift;
my $r = shift;
....
...
I guess that $r refers to Apache2::RequestRec object because the lines
that follows use methods of this object.

With the little knowledge, I don't know why calling $r = shift returns
Apache2::RequestRec.
How can I make use Apache2::Request in my handler so I can preseve the
parameter via post method?

I tried the following line without success

sub my_handler {
my $self = shift;
my $r = shift;
my $req = Apache2::Request->new($r, POST_MAX => "1M");
...
...
}
Please advice.

PA










--
View this message in context: http://www.nabble.com/Apache2%3A%3ARequest-tp17420698p17420698.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Subject User Time
Apache2::Request pinate11 at yahoo May 23, 2008, 1:49 AM
    Re: Apache2::Request xyon at indigorobot May 23, 2008, 4:59 AM
        Re: Apache2::Request adam.prime at utoronto May 23, 2008, 7:29 AM
    Re: Apache2::Request perrin at elem May 23, 2008, 10:01 AM
    Re: Apache2::Request jdrago_999 at yahoo May 23, 2008, 10:30 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.