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.





Reply via email to