In recent days, when the interface was developed, Tomcat reported 400 errors and looked for the following reasons.
Error cause : The parameters section of the URL contains/, the default tomcat is not supported URL parameters include:/(%2F), \ (%5c).
parsing method : can be configured by adding dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true
Method 1: Modify the configuration file, tomcat6/conf/ catalina.properties file Add a line dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true
Method 2: Add the startup parameters, -dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true
However, from the Apache official website, this configuration item belongs to the security group, do not know what kind of risk will be opened? Have to know the elder please advise ~
Official Note: http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security
Tomcat6url Request 400 Error (%2F and%5c)