Are you just trying to record what parameters (and values) that your script saw? Do you care if you see the original HTTP request?
Once you let CGI parse the parameters, everything you need is in the CGI object. Record what you get before you do anything else.
Update: a stray "s" made it into my code, and it has been hunted down and terminated.use CGI; my $query = CGI->new; # reads overthing log( $query ); #....the rest of your program sub log { my $q = shift; foreach my $param ( $q->param ) { #... however you want to log things my @values = $q->param( $param ); } }
In reply to Re: Log a Post Request
by brian_d_foy
in thread Log a Post Request
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |