I found this but can't seem to get it to work...
$ENV{'CONTENT_LENGTH'} = length($cgi_input);
$ENV{'CONTENT_TYPE'} = "application/x-www-form-urlencoded";
open(PIPE, "| test.cgi");
print PIPE $cgi_input;
close(PIPE);
There was a GET version too which didn't work either...maybe it was my script though :(
Code:
$ENV{'REQUEST_METHOD'} = "POST"; $ENV{'CONTENT_LENGTH'} = length($cgi_input);
$ENV{'CONTENT_TYPE'} = "application/x-www-form-urlencoded";
open(PIPE, "| test.cgi");
print PIPE $cgi_input;
close(PIPE);
There was a GET version too which didn't work either...maybe it was my script though :(