in reply to Is it possible to write to STDIN ?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is it possible to write to STDIN ? (fake CGI POST STDIN)
by exilepanda (Friar) on Jul 21, 2014 at 07:44 UTC | |
by Anonymous Monk on Jul 21, 2014 at 08:48 UTC | |
by exilepanda (Friar) on Jul 21, 2014 at 15:01 UTC |