本方法以HttpClient发送请求,并且接收返回数据 举例说明 public static String doGet(String url, Map params, String charset) public static void downLoadImage(String url, String path) public static String doPost(String apiUrl, Map params) public static String doPost(String apiUrl,String json) public static String doPost(String apiUrl,Map texts,Map files) 使用举例 public static void main(String[] args) { String url = "https://api.weixin.qq.com/cgi-bin/token?grant_type= client_credential&appid=xxx&secret=xxx"; String json = null; String res = SSLClient.doPost(url, json); System.out.println(res); } client_credential&appid=xxx&secret=xxx"; String json = null; String res = SSLClient.doPost(url, json); System.out.println(res); }