public String getHtml(String url, String charSet) {
        DefaultHttpClient httpClient = new DefaultHttpClient();
        String p = proxy.get(((int) (10000 * Math.random())) % proxy.size());
        String proxy = p.split(":")[0];
        Integer port = Integer.parseInt(p.split(":")[1]);
        HttpHost Proxy = new HttpHost(proxy, port);
        httpClient.getParams().setParameter(ConnRouteParams.DEFAULT_PROXY, Proxy);
        httpClient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 10000);
        httpClient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 10000);

        HttpGet httpGet = setHttpGet(url);
        String back = "error";
        try {
            HttpResponse response = httpClient.execute(httpGet);
            if (response != null) {
                int statusCode = response.getStatusLine().getStatusCode();
                if (statusCode == HttpStatus.SC_OK) { // 2XX状态码
                    HttpEntity entity = response.getEntity();
                    String html = InputStreamUtils.inputStream2String(entity.getContent(), charSet);
                    if (html.contains("</html>")) {
                        System.out.println(url + "contains </html>");
                        back = html;
                    } else
                        back = "error";
                }
            } else
                back = "error";
        } catch (ClientProtocolException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println("GetHtml:" + url + "with proxy:" + p);
        MyLog.logINFO("GetHtml:" + url + " with proxy:" + p);
        return back;
    }