包含json字符串类型的参数和包含 | 的http请求失败,返回状态码400,提示invalid character found in the request target。
Tomcat在 7.0.73, 8.0.39, 8.5.7 版本后,添加了对于http头的验证。
解决办法:
配置tomcat的catalina.properties
添加或者修改:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
包含json字符串类型的参数和包含 | 的http请求失败,返回状态码400,提示invalid character found in the request target。
Tomcat在 7.0.73, 8.0.39, 8.5.7 版本后,添加了对于http头的验证。
解决办法:
配置tomcat的catalina.properties
添加或者修改:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}