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

Functionality works/test failed

2007-01-14 Thread Tracy12
Hi, I am in the process of changing a perl module written to a Perl Authentication handler. Well when I try to deploy the module it failed in the ' make test' stage all the other steps went ok. But the functionality works as expected. When we execute make test it gives the following error Fa

Re: does begin block effect any performance in modperl

2007-01-14 Thread Jeff Pang
>> >> I mean anything relative to the performance.is the begin block called >> everytime orjust the first time and is it safe to define a function in >> a file and call it with this method rather than a package , > >The begin blocks are only run at compile time, so won't affect the >performance

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: mod_perl installation

2007-01-14 Thread Foo JH
If you're running on Linux/ Sun, I think most people avoid threading for performance reasons. If you're going to be on Windows, you don't have a choice: threading is compulsory. You may want to read up on the various MPM models for each OS. Octavian Rasnita wrote: Hi, How it is recommended t

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
I agree but look at the following scenario if User hits http://somedomain/test.pl?param1=x¶m2=y and if a failure happens in the authenticate handler I need to redirect to http://casmachine:8443/cas/login?service= that is http://casmachine:8443/cas/login?service=http://somedomain/test.pl?param1=

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
I agree but look at the following scenario if User hits http://somedomain/test.pl?param1=x¶m2=y and if a failure happens in the authenticate handler I need to redirect to http://casmachine:8443/cas/login?service= that is http://casmachine:8443/cas/login?service=http://somedomain/test.pl?param1

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
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 I need to extract this from the perl_module where I have a handler for the $r as follows, which is called from t

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
Can you let us know how you did this, Can we update the REMOTE_USER variable, From where can we find the documentation. Does mod_cas takes configurable parameters,is it s Authentication module, Our objective is simply, call the CAS, serivice_validate retrive the xml and look for a specific attr

Re: error when installing mod_perl

2007-01-14 Thread Octavian Rasnita
From: "Adam Prime x443" <[EMAIL PROTECTED]> I just ran into this same error. mod_perl 2.0.3 will build fine against httpd 2.2.3, but against 2.2.4 it gives this single failed test. Yes I know that, but I don't know if that bug is an important one and if it would be better to install Apache 2

RE: error when installing mod_perl

2007-01-14 Thread Adam Prime x443
I just ran into this same error. mod_perl 2.0.3 will build fine against httpd 2.2.3, but against 2.2.4 it gives this single failed test. Adam -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 4:17 AM To: modperl@perl.apache.org Subje

Re: Problem with libapreq2 and make

2007-01-14 Thread Jonathan Mangin
- Original Message - From: "Jonathan Mangin" <[EMAIL PROTECTED]> To: Sent: Sunday, January 14, 2007 2:30 PM Subject: Problem with libapreq2 and make > Hi, > Downloaded libapreq2-2.08 and did: > perl Makefile.PL --with-apache2-apxs=/usr/local/apache3/bin/apxs > make > > Got the followin

Re: does begin block effect any performance in modperl

2007-01-14 Thread Clinton Gormley
On Mon, 2007-01-15 at 00:49 +0530, abhishek jain wrote: > Hi friends, > i need to know that if i add the following block then will it affect > anything in the execution of modperl apart from first time run. > BEGIN{ > require'abc.pl'; > require'large_file.pl'; > > }; > > I mean anything relative

Problem with libapreq2 and make

2007-01-14 Thread Jonathan Mangin
Hi, Downloaded libapreq2-2.08 and did: perl Makefile.PL --with-apache2-apxs=/usr/local/apache3/bin/apxs make Got the following errors: make[2]: *** [libapreq2.la] Error 1 make[2]: Leaving directory `/src/misc/libapreq2-2.08/library' make[1]: *** [all] Error 2 make[1]: Leaving directory `/src/misc/

does begin block effect any performance in modperl

2007-01-14 Thread abhishek jain
Hi friends, i need to know that if i add the following block then will it affect anything in the execution of modperl apart from first time run. BEGIN{ require'abc.pl'; require'large_file.pl'; }; I mean anything relative to the performance.is the begin block called everytime orjust the first ti

Re: urgent help needed - this script does not chdir

2007-01-14 Thread Perrin Harkins
abhishek jain wrote: I am new to modperl and needs help, i have a script which works fine in non-modperl enviornment but when i include in modperl::registry then mine scripts when invoked via a browser finds itself in / directory http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apach

urgent help needed - this script does not chdir

2007-01-14 Thread abhishek jain
Hi, I am new to modperl and needs help, i have a script which works fine in non-modperl enviornment but when i include in modperl::registry then mine scripts when invoked via a browser finds itself in / directory i mean the file or script do not include the files with the require command i mean th

Solved: OT: Really wierd problem with TT2

2007-01-14 Thread Erik Norgaard
Perrin Harkins wrote: Erik Norgaard wrote: So: where does the alt, title and class attributes in the image element come from??? This is something you will have to figure out by experimenting. Print the contents of $item->{img} to your error_log. Take the item.img part out of your template.

Re: OT: Really wierd problem with TT2

2007-01-14 Thread Perrin Harkins
Erik Norgaard wrote: So: where does the alt, title and class attributes in the image element come from??? This is something you will have to figure out by experimenting. Print the contents of $item->{img} to your error_log. Take the item.img part out of your template. Change things until y

Re: pros & cons of Apache2::Request vs. CGI

2007-01-14 Thread Perrin Harkins
Torsten Foertsch wrote: what are the pros and cons of Apache2::Request vs. CGI in a MP2 environment? Apache2::Request is faster and uses less memory. CGI is easier to install, has more features, and is portable to other environments. - Perrin

OT: Really wierd problem with TT2

2007-01-14 Thread Erik Norgaard
Hi: I know this is not modperl specific, but, I use TemplateToolkit2 to create pages on my site. My site contains a lot of photos and I want to add listings with thumbnail preview. But element attributes magically appears when generating the page. The page contains no java script or other stu

pros & cons of Apache2::Request vs. CGI

2007-01-14 Thread Torsten Foertsch
Hi, what are the pros and cons of Apache2::Request vs. CGI in a MP2 environment? Torsten pgpw866vf3vwx.pgp Description: PGP signature