johnnywang has asked for the wisdom of the Perl Monks concerning the following question:
It works fine for the "POST" method. But for "GET", the $r->args() doesn't parse the key=value pair into hashes, instead, it still leaves them as "key=value" (rather than filling out the hash.) The documentation has always been that in array context, $r->args() should fill the hash.sub handler{ my $r = shift; my %params = $r->method eq 'POST' ? $r->content : $r->args(); #..... }
Anyone has seen this before, or I'm missing something? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl query string puzzle
by ysth (Canon) on Jul 31, 2004 at 00:36 UTC | |
by johnnywang (Priest) on Jul 31, 2004 at 08:23 UTC | |
by Anonymous Monk on Mar 08, 2011 at 14:16 UTC | |
|
Re: mod_perl query string puzzle
by antirice (Priest) on Jul 31, 2004 at 17:48 UTC |