【问题标题】:Springboot parsing HTTP HTTPSSpring Boot 解析 HTTP HTTPS
【发布时间】:2021-05-28 16:08:15
【问题描述】:

我在我的 Springboot 应用日志中发现了这样的错误消息:

Oct 20 14:22:14 ip-10-0-78-113 web: 2020-10-20 14:22:14.388 INFO 3802 — [nio-8081-exec-5] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Oct 20 14:22:14 ip-10-0-78-113 web: Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
Oct 20 14:22:14 ip-10-0-78-113 web: java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
...

我知道,这可能是因为有人/某个应用程序使用 HTTPS 而不是 HTTP 调用我的端点。我能够通过包含在属性中来记录这些请求:

logging.level.org.springframework.web: trace
logging.level.org.apache: trace

现在我收到了未解析的文本,如下所示:

 Received [ ÷  ó÷=EVq&GŵH¡à}C¶vÓÂíÿ@,¾ )L /ð^  w» e<Ú5~ñ¨7ëÌaÒ*l×e $À/À+À0À,̨̩À ÀÀ
À   / 5 
            localhost   ÿ   
   3 & $   ¬·lä¹]Ö·a6ððòvcd»[7Ûj V -  + ]

是否可以对其进行解码/解密,并找出实际的 API 调用是什么?

【问题讨论】:

    标签: spring-boot https


    【解决方案1】:

    我遇到了同样的问题并通过使用 http:// 而不是 https://

    【讨论】:

      猜你喜欢
      • 2015-08-04
      • 2014-12-26
      • 1970-01-01
      • 1970-01-01
      • 2019-05-15
      • 2019-08-14
      • 2018-12-18
      • 2021-02-07
      • 2021-12-12
      相关资源
      最近更新 更多