PRB: Specified CGI Application Gets Error Message

Last reviewed: May 20, 1997
Article ID: Q145661
The information in this article applies to:
  • Microsoft Internet Information Server version 1.0

SYMPTOMS

When you use a Common Gateway Interface (CGI) application with Microsoft Internet Information Server (IIS), the following error message appears:

   CGI Error:
   The specified CGI application misbehaved by not returning a complete set
   of HTTP headers. The headers it did return are:

CAUSE

This error is caused by the return of an incomplete or incorrect header by the CGI application.

RESOLUTION

Modify the source code for the CGI application header output. The following is an example of a correct header:

   print "HTTP/1.0 200 OK\n";
   print "Content-Type: text/html\n\n\n";


Additional query words: prodiis
Keywords : IISAPI iisscripts kb3rdparty kbprg
Technology : kbInetDev
Version : 1.0
Platform : WINDOWS
Issue type : kbprb


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: May 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.