# start code
use strict; use CGI;
my $page = new CGI;
# print header and start the markup output
print $page->header( "text/html" );
print $page->start_html( "hello from perl cgi!" );
print $page->h2("hello dave...");
print $page->end_html;# end code
cheers, JeffG
yop=me wrote:
When i have this problem, is becuase my script dont sends the print "Content-type: text/html\n\n"; first line. Mybe there is the problem.
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 04, 2004 7:49 AM
Subject: Help - CGI Error on IIS6
Hi all,
I've searched in Google, Google groups and the ASPN Mailing List and have been looking for answers for days to get my cgi scripts to work in IIS6. When I try to load a .pl file in my web browser, I get the following
error:
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers.
We're running a Windows 2003 Standard edition server with IIS6 and
installed
ActivePerl 5.8.4.810 via the MSI with following settings:
In the configuration I have .pl listed under extensions which is Associate with c:\Perl\Bin\Perl.exe "%s" %s and the verbs are listed as GET, HEAD, POST the boxes are checked for both Script Engine and Verify that file
exists.
(This is inserted by the ActivePerl installation process.)
Even though we ?allow? the extension in the IIS under 'WebService
Extensions'.
Under execute permissions I have Scripts and Executables
Under the Directory security tab in the Authentication and access control properties I have the Enable anonymous access checked and I am using the IUSR_<serverName> account and correct password.
It seems to be a configuration problem, because the script works perfectly in the command line.
I hope someone can help me R.
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
