Commit 1aa8ddf9 by carrieyzzhang

test

parent 9673bc91
...@@ -52,6 +52,9 @@ public class HttpClientUtil { ...@@ -52,6 +52,9 @@ public class HttpClientUtil {
public static String doHttpGetRequest(String url, String ip) { public static String doHttpGetRequest(String url, String ip) {
HttpClient httpClient = new HttpClient(httpConnectionManager); HttpClient httpClient = new HttpClient(httpConnectionManager);
resetRequestHeader(httpClient, ip); resetRequestHeader(httpClient, ip);
httpClient.getHttpConnectionManager().getParams()
.setConnectionTimeout(6000);
httpClient.getHttpConnectionManager().getParams().setSoTimeout(6000);
HttpMethod method = new GetMethod(url); HttpMethod method = new GetMethod(url);
String response = null; String response = null;
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment