Re: [ModPerl] missing POST args mystery

2001-07-10 Thread Ed Loehr

Ed Loehr wrote:
> 
> > >I'm stumped ...
> > >In a nutshell, my problem is that POSTed form key-value pairs are
> > >intermittently not showing up in the request object inside my handler
> > >subroutine.

As I was puzzling over this, I saw this error message in the logs...

(offline mode: enter name=value pairs on standard input)

A google search turned up a note about needing to have "$CGI::NO_DEBUG =
1" before calling CGI::Cookie->parse().  Adding that line of code before
my parse call seems to have fixed the problem.  At a glance, looks like
CGI.pm was strangely set to read from the command-line (default
$CGI::NO_DEBUG = 0), probably triggering a call of Apache's request->args
somewhere along the line.  How the default setting may have changed I
don't know, because I've been using CGI.pm for years without this
problem; I may have upgraded that package, picking up a change
accidentally.

Regards,
Ed Loehr



[ModPerl] missing POST args mystery

2001-07-06 Thread Ed Loehr

I'm stumped regarding some request object behavior in modperl, and after
searching the Guide, Google, and the list archives without success, I'm
hoping someone might offer another idea I could explore, or offer some
helpful diagnostic questions.

In a nutshell, my problem is that POSTed form key-value pairs are
intermittently not showing up in the request object inside my handler
subroutine.

I have a modperl-generated form:





...



...

...




Upon submission, the form data eventually flows to my PerlHandler... 

sub handler {
my $r = shift;
my @argsarray = ($r->method eq 'POST' ? $r->content() : $r->args());
...
}

Now, if I examine (print) the form values retrieved from the request
object upon entry into this handler (*after* I load them into $args),
'id' is not present at all.  I must be missing something trivially
obvious to some of you.

This is running Apache/1.3.19 (Unix) mod_perl/1.25 mod_ssl/2.8.3
OpenSSL/0.9.6a.

Regards,
Ed Loehr