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:

This error is caused by the return of an incomplete or incorrect set of headers by the CGI application. The CGI application may be written incorrectly. As well, logic errors, API failures, or anything that causes the CGI application malfunction can also cause this error.

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

Was this answer helpful?

 Print this Article

Also Read

What is cgi-bin?

What is a cgi-bin? A cgi-bin is a directory used on your webserver account to process programs...

Can you help me with a Step by Step cgi-script Configuration Guide?

Steps to ensure scripts run on Easyspace servers (The path to perl 5.004 on easyspace servers is...

Email going in JUNK/BULK folders of

Your emails being recieved in JUNK/BULK folders of Hotmail/Yahoo has some...

[ASP/PHP] Emailing Code Problems

There is email code in the following page: http://www.*******.com/ordersample.aspx When I press...

What is the IP address of my web site?

Except in exceptional situations (for example allowing an upload prior to a name server change...

Powered by WHMCompleteSolution