具体来讲,就是添加了些规则去限制HTTP头的规范性apache
参考这里tomcat
具体来讲:ruby
org.apache.tomcat.util.http.parser.HttpParser#IS_NOT_REQUEST_TARGET[]
中定义了一堆not request targetspa
if(IS_CONTROL[i] || i > 127 || i == 32 || i == 34 || i == 35 || i == 60 || i == 62 || i == 92 || i == 94 || i == 96 || i == 123 || i == 124 || i == 125) { IS_NOT_REQUEST_TARGET[i] = true; }
转换过来就是如下字符(对应10进制ASCII看):code
<32或者=127
)>127
)空格
(32
)双引号
(34
)#
(35
)<
(60
)>
(62
)反斜杠
(92
)^
(94
)TAB上面那个键,我也不晓得嫩个读
(96
){
(123
)}
(124
)|
(125
)解决办法:get
仍是参考这里it
即:io
配置tomcat的catalina.propertiesclass
添加或者修改:配置
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
重启tomcat便可