'[',']','\'等都是非法字符,new HttpGet(setServerUrl+ serverPath);的时候IllegalCharacterException
处理:
serverPath = serverPath.replace("\\", "/");//“\\”转义斜杠
serverPath = serverPath.replace("[", "%5b");
serverPath = serverPath.replace("]", "%5d");
HttpGet get = new HttpGet(setServerUrl+ serverPath);