📜  java.lang.illegalargumentexception:在请求目标中发现无效字符.有效字符在 rfc 7230 和 rfc 3986 中定义 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:24.727000             🧑  作者: Mango

代码示例1
If you use an upper version of Tomcat 8.5 it throws this exception if the URL path contains '[' and ']'. For older versions, it works.

Please use encodeUrl before making the requests.