Re: How to extract a parameter

2007-01-16 Thread Jonathan Vanasco
On Jan 16, 2007, at 12:41 PM, Frank Wiles wrote: I believe most of the web frameworks provide this sort of abstraction, at least I know Gantry ( www.usegantry.org ) does. You can move between the Gantry standalone server, CGI, FCGI, MP1, and MP2 with little to no code changes. ( W

Re: How to extract a parameter

2007-01-16 Thread Frank Wiles
On Tue, 16 Jan 2007 05:13:55 -0500 Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > i just use libapreq. i'd love to figure out a compatibility layer > one day , and just be able to abstract all my code from mod_perl so > it *could* run under fcgi or something if need be. i severely doubt >

Re: How to extract a parameter

2007-01-16 Thread Randy Kobes
On Tue, 16 Jan 2007, Jonathan Vanasco wrote: [ ... ] i just use libapreq. i'd love to figure out a compatibility layer one day , and just be able to abstract all my code from mod_perl so it *could* run under fcgi or something if need be. i severely doubt that will ever happen, but it is a bi

Re: How to extract a parameter

2007-01-16 Thread Jonathan Mangin
- Original Message - From: "Kevin Spencer" <[EMAIL PROTECTED]> To: "Issac Goldstand" <[EMAIL PROTECTED]> Cc: "Fred Moyer" <[EMAIL PROTECTED]>; "mod_perl list" Sent: Tuesday, January 16, 2007 10:46 AM Subject: Re: How to e

Re: How to extract a parameter

2007-01-16 Thread Kevin Spencer
On 1/16/07, Issac Goldstand <[EMAIL PROTECTED]> wrote: Instead of doing: my $q=CGI->new; my $param=$q->param('foo'); One needs to do: my $req=Apache2::Request->new($r); my $param=$req->param('foo'); I still fail to see the difficulty... Agreed. It's not difficult to *use*, just a little int

Re: How to extract a parameter

2007-01-16 Thread Perrin Harkins
Issac Goldstand wrote: I still fail to see the difficulty... The difficulty that we most frequently see reported here is compiling Apache2::Request. People have trouble with it often enough to make it a consideration for beginners. - Perrin

Re: How to extract a parameter

2007-01-16 Thread Jonathan Vanasco
On Jan 16, 2007, at 4:07 AM, Fred Moyer wrote: I agree it's much more powerful, and it is my power tool of choice :) In the original context of the question though, the poster was asking how to grab the the query string arguments. In that situation where someone is not familiar with the ba

Re: How to extract a parameter

2007-01-16 Thread Issac Goldstand
Fred Moyer wrote: >> Issac Goldstand wrote: >> I personally never liked using CGI with mod_perl; if I'm going through >> the trouble of writing optimized handlers to make my application that >> much faster, why use a pure-perl solution that needs to do full parsing >> in perl-land, when a lighter

Re: How to extract a parameter

2007-01-16 Thread Fred Moyer
Issac Goldstand wrote: Issac Goldstand wrote: Jonathan Vanasco wrote: On Jan 14, 2007, at 6:45 PM, Fred Moyer wrote: But it's really much easier to use CGI :) There's also libapreq OK - so out of the corner of my eye, I saw the link again as the previous mail was being copied to my sent-mail

Re: How to extract a parameter

2007-01-15 Thread Issac Goldstand
Issac Goldstand wrote: > Jonathan Vanasco wrote: >> On Jan 14, 2007, at 6:45 PM, Fred Moyer wrote: >>> But it's really much easier to use CGI :) >> There's also libapreq > > OK - so out of the corner of my eye, I saw the link again as the > previous mail was being copied to my sent-mail and notice

Re: How to extract a parameter

2007-01-14 Thread Issac Goldstand
Jonathan Vanasco wrote: > On Jan 14, 2007, at 6:45 PM, Fred Moyer wrote: >> But it's really much easier to use CGI :) > > There's also libapreq OK - so out of the corner of my eye, I saw the link again as the previous mail was being copied to my sent-mail and noticed that it said RequestRec::args

Re: How to extract a parameter

2007-01-14 Thread Foo JH
Fred Moyer wrote: Tracy12 wrote: Hi, Is there a easy way to extract the ticket(may be using a Regular Expression) parameter from a URL as follows http://localhost/myTest.pl?ticket=ST-2-zbwAtOlYlfzoC6knUXP9&name=test There is an easy way, that emulates CGI's methods. It's called libapreq2,

Re: How to extract a parameter

2007-01-14 Thread Jonathan Vanasco
On Jan 14, 2007, at 6:45 PM, Fred Moyer wrote: But it's really much easier to use CGI :) There's also libapreq // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personali

Re: How to extract a parameter

2007-01-14 Thread Fred Moyer
Tracy12 wrote: Hi, Is there a easy way to extract the ticket(may be using a Regular Expression) parameter from a URL as follows http://localhost/myTest.pl?ticket=ST-2-zbwAtOlYlfzoC6knUXP9&name=test use CGI; my $cgi = CGI->new($r); my $ticket = $cgi->param('ticket'); I need to extract this

How to extract a parameter

2007-01-14 Thread Tracy12
from the httpd.conf sub authen_handler { my $self= shift; my $r = shift; .. Also would like to know how to get the entire queryString? -- View this message in context: http://www.nabble.com/How-to-extract-a-parameter-tf3011730.html#a8364352 Sent from the mod_perl - Gen