The html is in the follwing format:
<html>
<head>
<title>someTitle</title>
</head>
<form action="../cgiDir/go.pl" method=POST>
<input type=hidden name="a" value="aswdc">
<input type=hidden name="b" value="4">
<input type="submit" name="B1" value="Submit">
</form>
</body>
</html>
The cgi is in the following format:
#!/usr/local/bin/perl
use CGI;
use HTTP::Request::Common;
use LWP::UserAgent;
$query = new CGI;
$query->use_named_parameters(1);
$var1 = $query->param('a');
$var2 = $query->param('b');
$ua = new LWP::UserAgent;
$req = POST 'http://www.someqURL.com',
v1 => $var1,
v2 => $var2
;
print $ua->request($req)->as_string;
exit 0;
I keep on getting a Server error. What am I doing wrong?
Thanks in advance.
Originally posted as a Categorized Question.