D
dr.mtarver
I'm doing a test Perl script under Windows 2008
Here is the HTML page that calls it; a simple submit button
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled </title>
</head>
<body>
<form action="cgi-bin/lambdaperl.cgi" method="POST">
</form>
<form method="POST">
<p><input type="submit" name="B1" value="Submit"></p>
</form>
</body>
</html>
Here is the file lambdaperl.cgi
#!/usr/bin/perl
print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\n\n";
print <<HTML;
<html>
<head>
<title>A Simple Perl CGI</title>
</head>
<body>
<h1>A Simple Perl CGI</h1>
<p>Hello World</p>
</body>
<//html>
HTML
exit;
I get
405 - HTTP verb used to access this page is not allowed.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
Here is the HTML page that calls it; a simple submit button
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled </title>
</head>
<body>
<form action="cgi-bin/lambdaperl.cgi" method="POST">
</form>
<form method="POST">
<p><input type="submit" name="B1" value="Submit"></p>
</form>
</body>
</html>
Here is the file lambdaperl.cgi
#!/usr/bin/perl
print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\n\n";
print <<HTML;
<html>
<head>
<title>A Simple Perl CGI</title>
</head>
<body>
<h1>A Simple Perl CGI</h1>
<p>Hello World</p>
</body>
<//html>
HTML
exit;
I get
405 - HTTP verb used to access this page is not allowed.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.