public static String getHtml(String url,String charSet){
        DefaultHttpClient httpClient = getHttpClientWithoutProxy();
       // DefaultHttpClient httpClient = new DefaultHttpClient();
        HttpGet httpGet = setHttpGet(url);
        String back = "";
        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);
                    back = html;
                }
            }
            else
                back = "error";
        } catch (ClientProtocolException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return back;
    }