Compile your cgi into a subroutine with CGI::Compile, wrap it with CGI::Emulate::PSGI, then install LWP::Protocol::PSGI, so you can talk to your cgi with WWW::Mechanize
Or maybe just use Test::WWW::Mechanize::CGI, it uses HTTP::Request::AsCGI
In reply to Re: Is it possible to write to STDIN ? (fake CGI POST STDIN)
by Anonymous Monk
in thread Is it possible to write to STDIN ?
by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |