utils/src/main/java/org/yeshi/utils/HttpUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
utils/src/main/java/org/yeshi/utils/HttpUtil.java
@@ -321,6 +321,22 @@ return null; } public static String postSimple(String url) { HttpClient client = new HttpClient(); PostMethod method = new PostMethod(url); try { client.executeMethod(method); return method.getResponseBodyAsString(); } catch (HttpException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return ""; } public static String post(String url) { HttpClient client = new HttpClient(); PostMethod method = new PostMethod(url);