Help with request data
[prev]
[thread]
[next]
[Date index for 2005/04/22]
Hi
MP2 RC5
I am moving from a MP1 to MP2 server and am having trouble. I have
opted to re-write the scripts I had so I could add some more
functions.
I am struggling tring to find methods to access my form data and
other headers. I am currently using
my $form_data = $r->the_request()
and split the line from there to access the form values.
For other headers I am using
my $string = $r->as_string;
(my $user-agent) = ($string =~ /User-Agent:(.*)\sAccept/);
I can get to where I want but I have the feeling I am taking the long
way to do it. The cook book I have on mod_perl doesn't cover MP2.
Is there no direct replacement for $r->param('field_name') or
$headers_in{'User-Agent'}? If not should I just continue as I am or
are there better methods for getting at the request?
Apologies in advance if I have missed this in the docs but I can't
find anything obvious in the Request::* documentation. I also am a
bit OO illiterate.
Thanx.
Dp.
 |
Help with request data
Dermot Paikkos 14:13 on 22 Apr 2005
|