Invalid character found in the request target.The valid characters are defined in RFC 7230 and RF的解决

今天在在提交信息时tomcat出现了解决:Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC3986的报错  从网上找了找方法,问题解决了


处理方法

.../conf/catalina.properties中,找到最后注释掉的一行 #tomcat.util.http.parser.HttpParser.requestTargetAllow=|  ,改成tomcat.util.http.parser.HttpParser.requestTargetAllow=|{},表示把{}放行


把这行的注释去掉 ,然后加上{} ,重启tomcat之后就不报错了


具体原来还有其他解决方法http://www.cnblogs.com/wsygdb/p/7661220.html这个连接里有

你可能感兴趣的:(Invalid character found in the request target.The valid characters are defined in RFC 7230 and RF的解决)