halfcountplus has asked for the wisdom of the Perl Monks concerning the following question:

I want to test a script using CGI qw(:standard) the same way I would test this:
echo "field1=whatever&field2=something%else" | thescript.cgi
This works with a cgi script that does not use the module and manually parses STDIN. However, the CGI module uses the QUERY_STRING environment variable. How can I set this to test the script outside of apache?

Replies are listed 'Best First'.
Re: spoofing CGI
by BrowserUk (Patriarch) on Mar 14, 2010 at 22:48 UTC
      :lol: Guess I should have started with ye olde documentation.

      Thanks.