"CGI application did not return complete set of HTTP headers" error message.

By: Vincent Drake

Abstract: Explains the cause of this cryptic error message when accessing a CGI application through the web browser.


While testing a CGI application, I get the following error from the server:

CGI Error

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

What's the problem here?


You have either not deployed the CGI to your web server correctly or the system path is incorrect. CGI apps that are dynamically linked to the Run Time Library(RTL) or use run-time packages must have the proper DLLs and BPLs available to them on the system path. VCL50.BPL, CC3250.dll, INET50.BPL and BORLNDMM.DLL are a few shared libraries that are most commonly needed by CGI apps. Make sure these and any other necessary DLLs and BPLs are accessible to the CGI.

The text file "deploy.txt", found in the root folder of your C++ Builder installation, contains additional information on this subject.

Server Response from: ETNASC01