bash-$ cat my.cgi #!/usr/bin/perl use strict; use warnings; use CGI::Lite (); my $cgi = CGI::Lite->new; $cgi->parse_form_data; print "Content-type: text/plain\n\n"; $cgi->print_form_data; bash-$ export REQUEST_METHOD=GET bash-$ export QUERY_STRING='foo=bar&baz=quux' bash-$ ./my.cgi Content-type: text/plain foo = bar baz = quux