判断页面内容是否压缩文件格式gzip,如果是,则需要gzip解压
//判断页面内容是否压缩文件格式gzip,如果是,则需要gzip解压
//String contentEncoding=entity.getContentEncoding().getValue();
//if(contentEncoding.endsWith("gzip")){
//GZIPInputStream gzin =null;
//try {
//gzin = new GZIPInputStream(in);
//} catch (IOException e) {
//e.printStackTrace();
//}
//content=FileUtil.getStringFromStream(gzin);
//}else{
//content=FileUtil.getStringFromStream(in);
//}