Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
2017-05-26 14:19
525 查看
tomcat进行http request解析的时候报错,并将错误返回给客户端了,具体的错误如下:org.apache.coyote.http11.AbstractHttp11Processor.processError parsing HTTP request headerNote:further occurrences of HTTP header parsing errors will be logged at DEBUG level.
就会报iib.requestheadertoolarge.error即Request header is too large,在网上搜索时,有的是因为这个设置导致的400,解决方法就是修改Tomcat的server.xml,在<Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" />的配置中增加maxHttpHeaderSize的配置。
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="8192" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation that requires the JSSE
style configuration. When using the APR/native implementation, the
OpenSSL style configuration is required as described in the APR/native
documentation -->
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="C:/Users/Administrator/.keystore" keystorePass="123456"/>
就会报iib.requestheadertoolarge.error即Request header is too large,在网上搜索时,有的是因为这个设置导致的400,解决方法就是修改Tomcat的server.xml,在<Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" />的配置中增加maxHttpHeaderSize的配置。
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="8192" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation that requires the JSSE
style configuration. When using the APR/native implementation, the
OpenSSL style configuration is required as described in the APR/native
documentation -->
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="C:/Users/Administrator/.keystore" keystorePass="123456"/>
相关文章推荐
- tomcat报错 error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- 关于Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors错误的原因
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- dojo/request 出现tomcat报错 error parsing HTTP request header Note: further occurrences of HTTP header..
- TOMCAT Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
- Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误解决办法
- 解决 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level问题
- 报错Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
- further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误
- further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误
- 【报错】Error parsing HTTP request header
- Tomcat 7.0.43 “INFO: Error parsing HTTP request header”
- Error parsing HTTP request header
- Error parsing HTTP request header
- Error parsing HTTP request header
- Error parsing HTTP request header