前段时间遇到这个问题:

包含json字符串类型的参数的http请求失败,返回状态码400,提示invalid character found in the request target。

Tomcat在 7.0.73, 8.0.39, 8.5.7 版本后,添加了对于http头的验证。

具体参考:https://www.cnblogs.com/hark0623/p/6977737.html

解决办法:

配置tomcat的catalina.properties

添加或者修改:

tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-10-28
  • 2021-11-17
  • 2021-11-27
  • 2021-11-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-01-07
  • 2022-12-23
  • 2021-06-08
  • 2021-11-19
相关资源
相似解决方案