| | |
| | | url += String.format("%s=%s&", key, URLEncoder.encode(params.get(key), "UTF-8"));
|
| | | }
|
| | |
|
| | | //System.out.println("url"+url);
|
| | | // System.out.println("url"+url);
|
| | | GetMethod method = new GetMethod(url);
|
| | | //3S的响应超时
|
| | | HttpConnectionManagerParams hparams = new
|
| | | HttpConnectionManagerParams();
|
| | | hparams.setConnectionTimeout(3000);
|
| | | client.getHttpConnectionManager().setParams(hparams);
|
| | | // 3S的响应超时
|
| | | HttpConnectionManagerParams hparams = new HttpConnectionManagerParams();
|
| | | hparams.setConnectionTimeout(3000);
|
| | | client.getHttpConnectionManager().setParams(hparams);
|
| | |
|
| | | /*
|
| | | * if(proxy){ Address address = ProxyUtil.getAddressProxy();
|
| | |
| | | }
|
| | |
|
| | | public static String taoKeGet(Map<String, String> params) {
|
| | | // 聚石塔服务器环境 118.178.179.189
|
| | | String result = get("http://118.178.179.189/taoke/", params, false);
|
| | | if (StringUtil.isNullOrEmpty(result))
|
| | | result = get("http://gw.api.taobao.com/router/rest", params, false);
|
| | | // 聚石塔服务器环境 118.178.179.189
|
| | |
|
| | | // result = get("http://118.178.179.189/taoke/", params, false);
|
| | | // if (StringUtil.isNullOrEmpty(result))
|
| | | String result = get("http://gw.api.taobao.com/router/rest", params, false);
|
| | | return result;
|
| | | }
|
| | |
|