当前位置:网站首页>Invalid character found in request destination. Valid characters are defined in RFC 7230 and RFC 3986
Invalid character found in request destination. Valid characters are defined in RFC 7230 and RFC 3986
2022-06-22 03:47:00 【Hu Bayi】
problem :


Cause analysis :
Because The log shows that the request address contains illegal characters , appear 400 error
tomcat The higher version strictly follows RFC 3986 Standard resolution address . The specification only allows a-zA-Z 0-9 - _ . ~ And all reserved characters ! * ’ ( ) ; : @ & = + $ , / ? # [ ]
But the item appears in the parameters that initiate the request {}, So we need to configure it
resolvent :
Most used methods on the Internet , take tomcat Medium server.xml Add the following configuration to the file :
relaxedPathChars="|{}[],%" relaxedQueryChars="|{}[],%"
stay tomcat Make the following configuration in the configuration file , find tomcat The configuration of the server.xml The path is conf Under the folder 

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" relaxedPathChars="|{}[],%" relaxedQueryChars="|{}[],%"/>
Add the code in the red box Problem solving . Or replace the above code .
边栏推荐
猜你喜欢
随机推荐
Dart异步是怎麼實現
【Leetcode】17回溯(电话号码的字母组合)
Ads communication between Beifu twincat3 controller and controller
How to randomly assign 1000 to 10 numbers
docker 安装redis
倍福TwinCAT3第三方伺服电机——以汇川IS620N伺服为例子
Dart异步是怎么实现
C # custom sorting
关于在dialog中调用edittext这个件事
Beifu TwinCAT sets the scanning cycle and operation cycle method of PLC
Sword finger offer 68 - ii Nearest common ancestor of binary tree
Beifu PLC string type string operation
Shelling of ESP law of reverse crackme
Dynamic planning - Taking stair climbing with minimum cost as an example
webview报错
WPF 实现星空效果
Official competition volume and "answer" of "Cyberspace Security" of secondary vocational group in 2019 national vocational college skills competition
Beifu twincat3 ads error query list
云原生架构(03)-架构
告警日志中出现ORA-48132 ORA-48170








