Help with request data

[prev] [thread] [next] [Date index for 2005/04/22]

From: Dermot Paikkos
Subject: Help with request data
Date: 14:13 on 22 Apr 2005
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

Re: Help with request data
Geoffrey Young 14:30 on 22 Apr 2005

Re: Help with request data
Dermot Paikkos 14:51 on 22 Apr 2005

Re: Help with request data
JH Foo 16:25 on 22 Apr 2005

Re: Help with request data
Dermot Paikkos 16:25 on 22 Apr 2005

Re: Help with request data
Markus Wichitill 16:36 on 22 Apr 2005

Re: Help with request data
Dermot Paikkos 16:39 on 22 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52