C
Chad
I have a Visual Basic program that loads a url and plugs in some values
for a few variables in a perl cgi script. This script is on a SCO
server and runs some 4GL programs. Instead of having the Visual Basic
program run the cgi script from a url on the SCO box I want it to run a
cgi script on my Linux server and then have that cgi script forward to
the cgi script on the SCO box. I got this working with the following
cgi script on the Linux box.
#!/usr/bin/perl
$user = "<username>";
$pass = "<password>";
$data = "<database_path>";
print "Location:
http://sco_server/cgi-bin/reportsrv.cgi?USERNAME=$user&PASSWORD=$p
ass&DATABASE=$data\n\n"
The cgi script reportsrv.cgi on SCO takes the three variables USERNAME,
PASSWORD, and DATABASE. If I have the Visual Basic program connect
directly to the SCO box it passes those variables to the cgi script,
but how can I get a cgi script on Linux to pass those same variables to
the cgi script on SCO? As you can see I've hard coded them into the
script above, which is not what I want. I've tried useing
USERNAME=USERNAME etc.. in the url, but that didn't pass the variables.
for a few variables in a perl cgi script. This script is on a SCO
server and runs some 4GL programs. Instead of having the Visual Basic
program run the cgi script from a url on the SCO box I want it to run a
cgi script on my Linux server and then have that cgi script forward to
the cgi script on the SCO box. I got this working with the following
cgi script on the Linux box.
#!/usr/bin/perl
$user = "<username>";
$pass = "<password>";
$data = "<database_path>";
print "Location:
http://sco_server/cgi-bin/reportsrv.cgi?USERNAME=$user&PASSWORD=$p
ass&DATABASE=$data\n\n"
The cgi script reportsrv.cgi on SCO takes the three variables USERNAME,
PASSWORD, and DATABASE. If I have the Visual Basic program connect
directly to the SCO box it passes those variables to the cgi script,
but how can I get a cgi script on Linux to pass those same variables to
the cgi script on SCO? As you can see I've hard coded them into the
script above, which is not what I want. I've tried useing
USERNAME=USERNAME etc.. in the url, but that didn't pass the variables.