Re: Problem with RequestRec and Headers

2007-09-23 Thread jk jk
I looked at the source. It does seem to be written for both. My understanding was that everything for apache2 was supposed to be in the Apach2:: namespace. In any case I posted the install error below. Does an environment variable need to be set? perl Makefile.PL Warning: prerequisite mod_per

Re: [OT] Client authentication

2007-09-23 Thread Philippe M. Chiasson
Bill Moseley wrote: > On Sun, Sep 23, 2007 at 01:44:44AM -0700, Philippe M. Chiasson wrote: >> >>> If the concern is that someone might spoof an IP address then the >>> shared secret seems adequate. >> If the secret is ever compromised, you have to update every single >> client/server out there. If

Re: booking should be captured only on the last page

2007-09-23 Thread Foo JH
Is there a qn to this? Perl wrote: I have two different pages having different form. All the forms are having the same Action(input.htm). I need to modify the code such that that the details can be recorded in the database only after parsing the second page .That means for the first page it sho

Re: Newbie - Samples or Tutorials

2007-09-23 Thread Foo JH
aqua wrote: Thanks for your email. I am actually looking for current "mod perl" related tutorials and not just Perl related. This HoptScripts site contains 3 mod_perl related tutorials and they are very old (2000). Why not drop by Amazon and pick up the mod_perl 2 book instead? It's just relea

Re: Problem with RequestRec and Headers

2007-09-23 Thread bharanee rathna
AFAIK Apache::Singleton works for MP2, also it does both per request and per process singletons. On 9/24/07, jk jk <[EMAIL PROTECTED]> wrote: > > I've been trying to use Apache::Singleton::Request under the assumption > that you're right about Class::Singleton being the crux of the issue. > Unfor

Re: Problem with RequestRec and Headers

2007-09-23 Thread Perrin Harkins
On 9/23/07, jk jk <[EMAIL PROTECTED]> wrote: > It was my impression that the most direct method of porting would be to use > Class::Singleton (Apache::Singleton::Request). It would be, but Apache::Singleton::Request is different from Class::Singleton in that it stores the instance in $r->pnotes in

Re: Problem with RequestRec and Headers

2007-09-23 Thread jk jk
I'm trying to port a pre-existing application built using a singleton design. Various class instances use a __PACKAGE__::getInstance() method to get a handle on the current request's instance. getInstance just returns $self which is a global variable. This works as a cgi, since every request is

Re: Problem with RequestRec and Headers

2007-09-23 Thread Perrin Harkins
On 9/23/07, jk jk <[EMAIL PROTECTED]> wrote: > I've been trying to use Apache::Singleton::Request under the assumption that > you're right about Class::Singleton being the crux of the issue. > Unfortunately, I can't get it working under Apache2. Is there a different > module for mp2/apache2 ? It

Re: Problem with RequestRec and Headers

2007-09-23 Thread jk jk
I've been trying to use Apache::Singleton::Request under the assumption that you're right about Class::Singleton being the crux of the issue. Unfortunately, I can't get it working under Apache2. Is there a different module for mp2/apache2 ? Thanks for your patience. --JAK On 9/23/07, jk jk <[EMA

Re: [OT] Client authentication

2007-09-23 Thread Bill Moseley
On Sun, Sep 23, 2007 at 01:44:44AM -0700, Philippe M. Chiasson wrote: > > > > If the concern is that someone might spoof an IP address then the > > shared secret seems adequate. > > If the secret is ever compromised, you have to update every single > client/server out there. If a client cert is

Re: Problem with RequestRec and Headers

2007-09-23 Thread jk jk
Why is that? Class::Singleton is modperl compatible, Apache::Singleton is the same thing with a few more features. Its purpose to simplify singleton application creation. My understanding was it would only allow a single instance of the object to be created for each request, not forever. Please

Re: [OT] Client authentication

2007-09-23 Thread Philippe M. Chiasson
Bill Moseley wrote: > This isn't mod_perl related, but I'm hoping someone here has > experience in this area and can provide some feedback. > Recommendation of a better list for this question is also welcome. > > I have a mod_perl/SOAP::Lite server application where I need to > authenticate the

Re: Problem with RequestRec and Headers

2007-09-23 Thread Philippe M. Chiasson
jk jk wrote: > I'm trying to port a preexisting CGI app to mod_perl2 and could use some > help. > > Here goes a test case that should illustrate my problem: > > The code pasted below loads the page properly the first time it's > accessed. However, upon multiple reloads in firefox, the headers ei

Re: +ParseHeaders random corruption

2007-09-23 Thread Philippe M. Chiasson
Mark Farver wrote: > Perrin Harkins wrote: >> On 9/21/07, Mark Farver <[EMAIL PROTECTED]> wrote: >> >>> Searching my harddrive, those strings appear in the mysql driver but we've >>> seen chunks of the gpl, and other weird random data in those errors. It >>> almost looks like a wild pointer. >>