java.lang.IllegalArgumentException: Illegal character in query at index xxx: 出现这种错误是因为 url出现了特殊字符,使用 URLEncoder.encode(result, "UTF-8")进行解码,问题解决