yujian
2019-07-22 93a794f7cc48647c78989d61023e8af603974573
http简版
1个文件已修改
16 ■■■■■ 已修改文件
utils/src/main/java/org/yeshi/utils/HttpUtil.java 16 ●●●●● 补丁 | 查看 | 原始文档 | 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);