Article ID: 150835 - Last Review: July 7, 2008 - Revision: 3.3 Troubleshooting CGI Error
This article was previously published under Q150835 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site: http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
SYMPTOMS
When you submit an HTML form or click a link to a script from the web
browser, you may receive an error similar to the following:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't open perl script "c:\inetsrv\wwwroot\scripts\test.pl": No such file or directory CAUSE
This error is caused by missing or malformed CGI header information. In
this case the headers are missing because the script file could not be run,
resulting in that error message being displayed instead of the output from
the script.
MORE INFORMATION
The Common Gateway Interface (CGI) Specification calls for the script file
to return at least one header. These headers fill out the remainder of the
HTTP headers as required by the HTTP protocol. The HTTP protocol also
requires a blank line between the end of the headers and the start of the
document. The only headers currently supported by the CGI specification
are:
Content-type: Location: STATUS Additional information about these headers can be found in the HTTP Protocol and CGI Protocol draft specifications available at http://www.w3.org (http://www.w3.org) . You can also see the following Microsoft Knowledge Base article: 150629
(http://support.microsoft.com/kb/150629/EN-US/
)
: Configuring and Testing a PERL Script with Internet Information Server (IIS)
REFERENCES238788
(http://support.microsoft.com/kb/238788/EN-US/
)
How to Debug CGI Applications Running Under IIS
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
