The specified CGI application misbehaved by not returning a_php tutorial

Source: Internet
Author: User
is the error report:
The specified CGI application misbehaved by isn't returning a complete set of HTTP headers
(The CGI mode of the HTTP protocol is not running correctly)

Because the-WT parameter is not supported in the first sentence of the Perl script, all-WT are replaced with-W
That is: Replace the #!/usr/bin/perl–wt with the following: #!/usr/bin/perl–w
This is to represent that PHP is a CGI mode test run in php.ini find Gi.force_redirect the front of the semicolon to remove the value of change to 0 on the line.

Run it again, this is another way to configure PHP to run the mode

PHP Errors encountered today

CGI Error
The specified CGI application misbehaved by isn't 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 the CGI, after running the following error:

CGI Error
The specified CGI application misbehaved by isn't returning a complete set of HTTP headers. The headers it did return is:

"-T" is on the #! Line, it must also is used on the command line at E:\BUGZILLA-3.4.2\BUGZILLA-3.4.2\INDEX.CGI Line 1.

Error Reporting:
The specified CGI application misbehaved by isn't returning a complete set of HTTP headers
(The CGI mode of the HTTP protocol is not running correctly)

Because the-WT parameter is not supported in the first sentence of the Perl script, all-WT are replaced with-W
That is: Replace the #!/usr/bin/perl–wt with the following: #!/usr/bin/perl–w
This is to represent that PHP is a CGI mode test run in php.ini find Gi.force_redirect the front of the semicolon to remove the value of change to 0 on the line.

PS: Another solution
Modify IIS settings, home Directory tab, application settings, select CGI, and then in Add/Edit application extension map name: Write the CGI executable name as:
D:\Perl\bin\perl.exe-x-wt '%s '%s
(Note: Here my Perl is installed in the D:\Perl directory)
This way, you don't need to change the Bugzilla file.

http://www.bkjia.com/PHPjc/322989.html www.bkjia.com true http://www.bkjia.com/PHPjc/322989.html techarticle is error report: The specified CGI application misbehaved by not returning a complete set of HTTP headers meaning: (HTTP protocol CGI mode is not running correctly Because of the Perl script ...

  • 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.