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 from the perl_module where I have a handler for the
$r as follows, which is called from the httpd.conf
sub authen_handler {
my $self= shift;
my $r = shift;
......
Also would like to know how to get the entire queryString?
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_args_
But it's really much easier to use CGI :)
HTH