[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Replicating STDIN in POST method


On Fri, 7 Apr 2006 17:37:49 +0200, Wojciech Pietron wrote:

Hi Wojciech

You don't tell us if your app uses CGI::Application, but since you posted to 
this list, I assume so.

Here's how I do it, in my module Util.pm, called from my CGI::App module as:

Util -> log_cgi_form_fields($self);

where $self is the CGI::App module:

sub log_cgi_form_fields
{
	my($self, $cgi_app) = @_;

	$cgi_app -> log() -> info("CGI form field: $_ => " . $cgi_app -> query() -> 
param($_) ) for $cgi_app -> query() -> param();
	$cgi_app -> log() -> info('-' x 50);

}	# End of log_cgi_form_fields.

HTH
-- 
Cheers
Ron Savage, suppressed on 8/04/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.