Error parsing HTTP Request Header
I have recently made an error in making a SPRINGMVC project, and the errors are as follows:
Info: Error parsing HTTP Request Header
Note:further occurrences of HTTP header parsing errors'll be logged at DEBUG level.
Displays the wrong HTTP request header, which is very depressing here, before this problem occurs because the submission data exceeds the header content of the definition,
At that time, the server.xml maxhttpheadersize in Tomcat had been set to a large enough size and why the problem still arose.
Then finally found the problem, the original JSON transmission when the inclusion of {}, which is why. Because after tomcat7 a version,
Added a new feature, which is to strictly follow the RFC 3986 specification for access resolution, while the RFC 3986 specification defines the URL
Only English letters (A-ZA-Z), Numbers (0-9),-_.~4 special characters are allowed
As well as all reserved characters (RFC3986 specifies the following characters as reserved characters:! * ' ();: @ & = + $,/? # []).
The workaround is simple and can be changed by modifying the last line of Tomcat's catalina.properties to
tomcat.util.http.parser.httpparser.requesttargetallow=| {}
Allow {}.
Info: Error parsing http request Header Note:further occurrences of HTTP header parsing errors would be logged at DEBUG leve L.