Class HttpUtil

java.lang.Object
com.acanx.utils.HttpUtil

public class HttpUtil extends Object
ACANX-Util / com.acanx.utils / HttpUtil 文件由 ACANX 创建于 2019/1/5 . 15:46 HttpUtil: 补充说明: 2019/1/5 15:46
Since:
0.0.0.1.6
Author:
ACANX
  • Method Details

    • post

      public static String post(String requestUrl, String accessToken, String params) throws Exception
      POST请求
      Parameters:
      requestUrl - 请求路径
      accessToken - accessToken
      params - 请求参数
      Returns:
      请求结果
      Throws:
      Exception - Exception
    • post

      public static String post(String requestUrl, String accessToken, String contentType, String params) throws Exception
      post请求方法
      Parameters:
      requestUrl - 请求地址
      accessToken - accessToken
      contentType - contentType
      params - 参数
      Returns:
      请求结果
      Throws:
      Exception - Exception
    • post

      public static String post(String requestUrl, String accessToken, String contentType, String params, String encoding) throws Exception
      POST请求
      Parameters:
      requestUrl - 请求路径
      accessToken - accessToken
      contentType - contentType
      params - 参数
      encoding - 编码
      Returns:
      请求结果
      Throws:
      Exception - Exception
    • postGeneralUrl

      public static String postGeneralUrl(String generalUrl, String contentType, String params, String encoding) throws Exception
      POST请求生成方法
      Parameters:
      generalUrl - 请求路径
      contentType - contentType
      params - 请求参数
      encoding - 编码
      Returns:
      请求结果
      Throws:
      Exception - Exception