The valid characters are defined in RFC 7230 and RFC 3986报错处理
Posted x-jingxin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The valid characters are defined in RFC 7230 and RFC 3986报错处理相关的知识,希望对你有一定的参考价值。
解决办法:
1、更换低版本Tomcat,如Tomcat7.0.69之前的版本
2、如果是Linux环境,修改部署Tomcat目录conf里的catalina.properties文件
tomcat.util.http.parser.HttpParser.requestTargetAllow=|[]{}
3、如果是window环境,存在上面修改无效的情况,此时修改Tomcat/conf里的server.xml
<Connector connectionTimeout="20000" port="8090" protocol="HTTP/1.1" relaxedQueryChars="[]|{}^\`"<>" redirectPort="8443"/>
增加配置:
relaxedQueryChars="[]|{}^\`"<>"
以上是关于The valid characters are defined in RFC 7230 and RFC 3986报错处理的主要内容,如果未能解决你的问题,请参考以下文章
Springboot 报错 Invalid character found in the request target. The valid characters are defined in RFC
异常:Invalid character found in the request target. The valid characters are defined in RFC 3986
问题Invalid character found in the request target. The valid characters are defined in RFC 7230 and (代
Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC(
解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RF
解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RF