|
|
@ -30,6 +30,17 @@ public class HttpUtils |
|
|
|
{ |
|
|
|
{ |
|
|
|
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); |
|
|
|
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 向指定 URL 发送GET方法的请求 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param url 发送请求的 URL |
|
|
|
|
|
|
|
* @return 所代表远程资源的响应结果 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String sendGet(String url) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return sendGet(url, StringUtils.EMPTY); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 向指定 URL 发送GET方法的请求 |
|
|
|
* 向指定 URL 发送GET方法的请求 |
|
|
|
* |
|
|
|
* |
|
|
|