The specified CGI application misbehaved by not returning

Source: Internet
Author: User
Tags perl script

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.