PRB: Specified CGI Application Gets Error Message

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"; 


REFERENCES

Q238788 How to Debug CGI Applications Running Under IIS

Additional query words: prodiis

Keywords : kb3rdparty kbprg iisapi IISscripts
Version : winnt:1.0
Platform : winnt
Issue type : kbprb


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.