Troubleshooting CGI Error

Last reviewed: April 22, 1997
Article ID: Q150835

The information in this article applies to:
  • Microsoft Internet Information Server version 1.0

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.


Additional query words: cgi prodiis
Keywords : iissetup kbsetup nttcp
Version : 1.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.