HTTP/1.1 400 Bad Request 概览
400 Bad Request
The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing)
–wikipedia
由于有明显的客户端错误,服务器不能或者不会处理请求(例如,异常的请求语法,请求的长度过大,无效的请求信息帧,或者欺骗性的路由)
问题
1、无效的请求信息帧
请求信息
- 请求类型:HTTP GET
- 请求参数:有一个参数是JSON格式的数据(重点关注)
响应信息
Tomcat 的日志
- Tomcat Catalina Log
15-Aug-2018 10:42:47.424 信息 [http-nio-8080-exec-3] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request head
- Tomcat Catalina Log