admin
2021-01-23 0a18a8cb0a7a57bf1f82df425251334c57f8c39a
src/main/java/com/yeshi/buwan/util/HttpUtil.java
@@ -36,6 +36,22 @@
      return "";
   }
   public static String defaultGet(String url) {
      HttpClient client = new HttpClient();
      GetMethod method = new GetMethod(url);
      try {
         client.executeMethod(method);
         method.getStatusCode();
         return method.getResponseBodyAsString();
      } catch (HttpException e) {
         e.printStackTrace();
      } catch (IOException e) {
         e.printStackTrace();
      }
      return "";
   }
   public static String get(String url, Map<String, String> map) {
      HttpClient client = new HttpClient();
      // client.getHostConfiguration().setProxy("192.168.1.122", 8888);