Getting post data

2006-09-28 Thread Erik Norgaard
Hi: I am using Apache 2.2 with mod_perl2. Reading the documentation I have found that I should get POST data using read(): $r->read($buffer, $r->headers_in('content-length')) A few questions - ok, some may really be related to the http protocol: 1) Is the headers_in case sensitive? (conten

Re: Getting post data

2006-09-28 Thread Erik Norgaard
Tom Schindl wrote: Please use one of the modules to read data: - libapreq2 (http://search.cpan.org/~joesuf/libapreq2-2.08/) - CGI.pm (comes with your perl-distro maybe you need to update it from CPAN if you have an older perl) Thanks! Apache2::Request is just what I need - I understa

Reading custom configuration parameters

2006-09-28 Thread Erik Norgaard
Hi: I have successfully created a module that declares some configuration parameters which should be available to the handler: dbDriver, dbHost, dbName, dbUser and dbPassword. Or so I think, I followed this guide: http://perl.apache.org/docs/2.0/user/config/custom.html But there is one thi

Re: Reading custom configuration parameters

2006-09-28 Thread Erik Norgaard
Philip M. Gollucci wrote: Erik Norgaard wrote: Hi: I have successfully created a module that declares some configuration parameters which should be available to the handler: dbDriver, dbHost, dbName, dbUser and dbPassword. Or so I think, I followed this guide: http://perl.apache.org/docs

Re: Reading custom configuration parameters

2006-09-29 Thread Erik Norgaard
Erik Norgaard wrote: I have successfully created a module that declares some configuration parameters which should be available to the handler: dbDriver, dbHost, dbName, dbUser and dbPassword. Or so I think, I followed this guide: http://perl.apache.org/docs/2.0/user/config/custom.html

How do I redirect?

2006-12-11 Thread Erik Norgaard
Hi: I was wondering: How do I redirect to a different page? I want my handler to be able to redirect a request, I know there is the REDIRECT constant but I also need to indicate where to? This doesn't seem to be in the man-page. Thanks, Erik -- Ph: +34.666334818 web: ht

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

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 templ

Client certificate based authentication

2007-04-08 Thread Erik Norgaard
Hi: I want to setup apache to request the client certificate and setup the secure connection if the certificate is issued from any of a number of trusted CAs. Then, my handler will check the distinguished name to verify the user is known and give access with that users credentials. I have tw