Error Report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
(The CGI Mode of the http protocol is incorrect)
Because the-wT parameter is not supported in the first sentence of the perl script, replace all-wT with-w.
That is #! /Usr/bin/perl-wT: replace #! /Usr/bin/perl-w
This means that php is used for CGI model test run. Find gi. force_redirect in php. ini and remove the semicolon and change the value to 0.
Run it again. This is another PHP running mode configuration method.
PHP errors encountered today
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
The final solution is to change the CGI Mode of PHP to the isapi mode.
Environment: windows XP SP3 + IIS5.1 + ActivePerl 5.10.0
After installing BugZilla, configure CGI. The error after running is as follows:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
"-T" is on #! Line, it must also be used on the command line at E: \ bugzilla-3.4.2 \ bugzilla-3.4.2 \ index. cgi line 1.
Error Report:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
(The CGI Mode of the http protocol is incorrect)
Because the-wT parameter is not supported in the first sentence of the perl script, replace all-wT with-w.
That is #! /Usr/bin/perl-wT: replace #! /Usr/bin/perl-w
This means that php is used for CGI model test run. Find gi. force_redirect in php. ini and remove the semicolon and change the value to 0.
PS: other solutions
Modify IIS settings, main Directory tab-> application settings-> select CGI, and then add/edit the application extension ing name: Write the CGI executable file name:
D: \ Perl \ bin \ perl.exe-x-wT "% s" % s
(Note: Here, my Perl is installed in the D: \ Perl directory)
In this way, you do not need to change the BUGZilla file.