HttpClientFactory引入即可使用。
//get请求
public static HttpResponse doGet(String url, Header[] headers);
//贷cookie的post请求
public static HttpResponse doPost(String url,CookieStore cookieStore
, Header[] headers,List params);
//字节型参数的post请求
public static HttpResponse doPost(String url, Header[] headers,byte[] buffer);
//获取响应头的字符集
public static String getEntityCharSet(HttpResponse response) ;
1