Package com.acanx.utils
Class HttpUtil
java.lang.Object
com.acanx.utils.HttpUtil
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
POST请求- Parameters:
requestUrl
- 请求路径accessToken
- accessTokenparams
- 请求参数- Returns:
- 请求结果
- Throws:
Exception
- Exception
-
post
public static String post(String requestUrl, String accessToken, String contentType, String params) throws Exception post请求方法- Parameters:
requestUrl
- 请求地址accessToken
- accessTokencontentType
- contentTypeparams
- 参数- 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
- accessTokencontentType
- contentTypeparams
- 参数encoding
- 编码- Returns:
- 请求结果
- Throws:
Exception
- Exception
-
postGeneralUrl
public static String postGeneralUrl(String generalUrl, String contentType, String params, String encoding) throws Exception POST请求生成方法- Parameters:
generalUrl
- 请求路径contentType
- contentTypeparams
- 请求参数encoding
- 编码- Returns:
- 请求结果
- Throws:
Exception
- Exception
-