| | |
| | | } |
| | | |
| | | String str = EntityUtils.toString(proxyResponse.getEntity(), "UTF-8"); |
| | | String proxyUrl = res.getProxy().replace("{token}", response.getHeader("token")); |
| | | proxyUrl = request.getRequestURL().substring(0, request.getRequestURL().indexOf(proxyUrl) + proxyUrl.length()); |
| | | str = str.replace(res.getUrl(), proxyUrl); |
| | | |
| | | int index = str.indexOf(StaticData.QUERYABLE); |
| | | while (index > -1) { |
| | | int start = str.indexOf("<Name>", index) + StaticData.I6; |
| | |
| | | |
| | | String name = ":" + str.substring(start, str.indexOf("</Name>", start)); |
| | | if (!res.getTab().contains(name)) { |
| | | // index = str.lastIndexOf(">", index) |
| | | end = str.indexOf("<", end); |
| | | str = str.substring(0, index) + str.substring(end); |
| | | index = str.indexOf(StaticData.QUERYABLE, index); |
| | | } else { |