June 28th, 2000, 07:04 AM
I want to put the result of a .cgi file in a html page, what I mean is that I want to embebed the .cgi file into a .html file.
I can't use SSI because the .CGI file is in other server.
June 28th, 2000, 08:55 PM
>>I can't use SSI because the .CGI file is in other server
You actually can.
print "Content-type: text/htmlnn";
$target_file = "http://otherserver.com/cgi-bin/script.cgi";
my $file = get($target_file);
To use Simple.pm, you need to download http://www.perl.com/CPAN-local/modul...rl-5.48.tar.gz
Readme file at -> http://www.perl.com/CPAN-local/modul...rl-5.48.readme
If that cgi script on other server only accepts POST method, you then need to use UserAgent.pm. For GET method, Simple.pm should be fine.
[This message has been edited by freebsd (edited June 28, 2000).]