[Catalyst] CGI parameters
Juan Camacho
jc5826 at gmail.com
Fri Apr 22 01:03:05 CEST 2005
> http://search.cpan.org/~lds/CGI.pm-3.08/CGI.pm#MIXING_POST_AND_URL_PARAMETERS
>
> To complete ...
>
Key in the documentation is that for the following to do what is
expected, it requires POST. I'm assuming the url_param is needed to
resolve some issue with session_id's in the URL. If url_param is
absolutely needed, then it may need to be ignored under GET
conditions. I don't know enough about the reasoning to provide a
patch.
my $cgi = CGI->new();
my @params;
for my $param ( $cgi->url_param ) {
for my $value ( $cgi->url_param($param) ) {
push( @params, $param, $value );
}
}
for my $param ( $cgi->param ) {
for my $value ( $cgi->param($param) ) {
push( @params, $param, $value );
}
}
Juan
More information about the Catalyst
mailing list