The specified CGI application misbehaved by not returning a complete set of HTTP headers
2011-03-31 11:31
585 查看
是错误报告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http协议的CGI模式运行不正确)
因为perl脚本的第一句中不支持 -wT 参数,将所有的 -wT 替换成 -w 即可
即:将 #!/usr/bin/perl –wT 替换为:将 #!/usr/bin/perl –w
这是代表php是以CGI模试运行的 在php.ini找到 gi.force_redirect 把前面的分号去掉 把值改成0就行了。
再次运行就可以了,这是PHP另一种运行模式的配置方法
今天遇到的PHP错误
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
最后解决办法是将PHP的CGI方式改为isapi方式。
环境:windows XP SP3+IIS5.1+ActivePerl 5.10.0
安装BugZilla后,配置CGI,运行后错误如下:
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 the #! line, it must also be used on the command line at E:\bugzilla-3.4.2\bugzilla-3.4.2\index.cgi line 1.
错误报告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http协议的CGI模式运行不正确)
因为perl脚本的第一句中不支持 -wT 参数,将所有的 -wT 替换成 -w 即可
即:将 #!/usr/bin/perl –wT 替换为:将 #!/usr/bin/perl –w
这是代表php是以CGI模试运行的 在php.ini找到 gi.force_redirect 把前面的分号去掉 把值改成0就行了。
PS:另外解决办法
修改IIS设置里,主目录选项卡->应用程序设置->选择CGI,之后在添加/编辑应用程序扩展映射名:将CGI可执行文件名写为:
D:\Perl\bin\perl.exe -x -wT “%s“ %s
(注:这里我的Perl安装在D:\Perl目录里)
这个样子就不需要更改BUGZilla的文件了
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http协议的CGI模式运行不正确)
因为perl脚本的第一句中不支持 -wT 参数,将所有的 -wT 替换成 -w 即可
即:将 #!/usr/bin/perl –wT 替换为:将 #!/usr/bin/perl –w
这是代表php是以CGI模试运行的 在php.ini找到 gi.force_redirect 把前面的分号去掉 把值改成0就行了。
再次运行就可以了,这是PHP另一种运行模式的配置方法
今天遇到的PHP错误
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
最后解决办法是将PHP的CGI方式改为isapi方式。
环境:windows XP SP3+IIS5.1+ActivePerl 5.10.0
安装BugZilla后,配置CGI,运行后错误如下:
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 the #! line, it must also be used on the command line at E:\bugzilla-3.4.2\bugzilla-3.4.2\index.cgi line 1.
错误报告:
The specified CGI application misbehaved by not returning a complete set of HTTP headers
意思是:(http协议的CGI模式运行不正确)
因为perl脚本的第一句中不支持 -wT 参数,将所有的 -wT 替换成 -w 即可
即:将 #!/usr/bin/perl –wT 替换为:将 #!/usr/bin/perl –w
这是代表php是以CGI模试运行的 在php.ini找到 gi.force_redirect 把前面的分号去掉 把值改成0就行了。
PS:另外解决办法
修改IIS设置里,主目录选项卡->应用程序设置->选择CGI,之后在添加/编辑应用程序扩展映射名:将CGI可执行文件名写为:
D:\Perl\bin\perl.exe -x -wT “%s“ %s
(注:这里我的Perl安装在D:\Perl目录里)
这个样子就不需要更改BUGZilla的文件了
您可能感兴趣的文章:
相关文章推荐
- The specified CGI application misbehaved by not returning a complete set of HTTP headers
- The specified CGI application misbehaved by not returning a complete set of HTTP headers错误解决办法
- 【406错误】 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
- Caller does not have enough privilege to set CallerOriginToken to the specified value
- HTTP Status 406 --- not acceptable according to the request "accept" headers
- The entitlements specified in your application’s Code Signing Entitlements file do not match those s
- mysql: Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/sha
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- Use HttpApplication.CompleteRequest Instead of Response.End
- 真机调试The entitlements specified in your application’s Code Signing Entitlements file do not match tho
- The entitlements specified in your application’s Code Signing Entitlements file do not match those s
- 浏览器报错:Lazy require of app.binding did not set the binding field
- pid.txt CATALINA_PID was set but the specified file does not exit
- 1.4 Dynamically change the look of an application by using view states,transitions and effects
- template might not exist or might not be accessible by any of the configured Template Resolvers
- The entitlements specified in your application’s Code Signing Entitlements file do not match ...
- “The entitlements specified in your application’s Code Signing Entitlements file do not match those
- Incorrect decrement of the reference count of an object that is not owned at this point by the calle
- The method getNotCompleteOrder(ResultBean) of type HomeServiceImpl must override a superclass method
- [loadFromRemoteSources]This release of the .NET Framework does not enable CAS policy by default