mirror of https://gitee.com/makejava/EasyCode.git
Pre Merge pull request !13 from 坎坎坷坷/N/A
This commit is contained in:
commit
fe06c87563
|
@ -77,6 +77,14 @@ public final class HttpUtils {
|
|||
return handlerRequest(httpGet);
|
||||
}
|
||||
|
||||
public static String getRemoteUrl(String url){
|
||||
HttpGet httpGet = new HttpGet(url);
|
||||
httpGet.setHeader(HttpHeaders.USER_AGENT, USER_AGENT);
|
||||
httpGet.setHeader(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE);
|
||||
httpGet.setConfig(getDefaultConfig());
|
||||
return handlerRequest(httpGet);
|
||||
}
|
||||
|
||||
/**
|
||||
* post json请求
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue