D
D
i want to pass all cgi parameters to an exe (cgi app) and run the executable
and capture all of its output.
use CGI;
my $all_params;
my $thing = `C:/Inetpub/scripts/webapp.exe $all_params`;
print $thing;
this gives me a web page that declares and error, wich is what i would
expect, but this is good because when i pass it the right parameters i will
get back htm and i can parse it easily. the problem is i want to
impersonate what IIS would have passed if i did something like
http://site/scripts/webapp.exe and i thing the CGI module would do this for
me easily but dont know how.
and capture all of its output.
use CGI;
my $all_params;
my $thing = `C:/Inetpub/scripts/webapp.exe $all_params`;
print $thing;
this gives me a web page that declares and error, wich is what i would
expect, but this is good because when i pass it the right parameters i will
get back htm and i can parse it easily. the problem is i want to
impersonate what IIS would have passed if i did something like
http://site/scripts/webapp.exe and i thing the CGI module would do this for
me easily but dont know how.