tomcat配置https服务协议的时候出现以下错误:
信息: Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.java.lang.IllegalArgumentException: Invalid character (CR or LF) found in method name
检查步骤:
1、tomcat-conf-server.xml配置中https部分是否已经开启
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="true" sslProtocol="TLS" maxHttpHeaderSize="65536"
truststoreFile="D:\\server.keystore" truststorePass="123456"/>
2、https配置中加入最大head缓存:maxHttpHeaderSize="65536" (64K)
3、访问https时候的端口是否正确,port:8443