Re: POST params with (solved)

2001-09-10 Thread Nathan Wiger
Tom Servo wrote: > > There could be something I'm missing here, but I believe you need to use > $r->content() to get POST arguments. Beware though, that once you call > content() you can't call it again, so hang onto whatever comes out of it. > > Also...isn't it $r->args() or am I just complet

POST params with

2001-09-10 Thread Nathan Wiger
are at the latest rev as far as I'm aware. perl 5.6.1 apache 1.3.20 mod_perl 1.25 libapreq 0.33 Thanks for any help. -Nate -- Nathan Wiger Sysadmin and Perl Hacker Sun Microsystems

Apache::ConfigFile just uploaded

2001-09-07 Thread Nathan Wiger
can write a custom config module for your own applications and use this module to parse it. In any case, the module is stable but I'd be shocked it is bug-free. So if you have any comments or bugfixes I'd like to know about them. Hope you find this useful! -Nate -- Na

Re: Apache::Session::Object

2000-07-07 Thread Nathan Wiger
Perrin- > modifying Apache::Session to support both interfaces and sending Jeffrey > the patch. This is a good suggestion. I'll try modifying Apache::Session first and sending Jeff the patch. If he doesn't want to integrate it I'll package it as a separate module. -Nate

Re: Apache::Session::Object

2000-07-06 Thread Nathan Wiger
Perrin- > Is there a reason you can't use the OO interface that Apache::Session > comes with? > > $session->STORE('visa_number') = '7'; > print $session->FETCH('visa_number'); > $session->DELETE('visa_number'); This isn't really a documented interface - it's an overloading of the tie methods so

Apache::Session::Object

2000-07-06 Thread Nathan Wiger
Hi- I've created an object interface to Apache::Session. It's a simple module that I've called Apache::Session::Object (seemed pretty intuitive) that presents the following interface: # Create new session using the default File store use Apache::Session::Object; my $session = new Apache

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
> NW] In any case, I have several questions: > NW] > NW] 1. Does a module like this exist anywhere? > > You may want to take a look at AppConfig module. It does provide > generic capability to parse various kinds of config file. But I'll > be a happy user to have more spesific Apache related

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
James- You and are are saying the same thing, just with different terminology. I agree completely. :-) -Nate James G Smith wrote: > > Nathan Wiger <[EMAIL PROTECTED]> wrote: > > > > UseCanonicalName On# = 1 > > UseCanonicalName Off # = 0 > >

Possible mod_perl or ??? bug?

2000-06-29 Thread Nathan Wiger
Hi all- On a totally different subject, I've been experiencing problems with the interaction between CGI::Carp and Apache::Session. I find that in a mod_perl context, if I import CGI::Carp before I import Apache::Session, then I run into the following error: [Thu Jun 29 13:14:03 2000] [error] (

Re: Apache::Config module

2000-06-27 Thread Nathan Wiger
James- > You might want to reconsider the usecanonicalname setting. The hash element > should exist if and only if it appears in the configuration file. It should > be defined if and only if it has an argument in the configuration file. > > Thus, the following results: > > UseCanonicalNam

Apache::Config module

2000-06-27 Thread Nathan Wiger
Hi all- I've written a module that can parse the Apache httpd.conf config file (and in fact any Apache-like config file). It will take a set of directive like: ServerName www.mydomain.com UseCanonicalName Off And parse it case-insensitively, returning a ref to a hash: