HttpClient 学习整理
摘要:
一.HttpClient连接超时问题DefaultHttpClient:DefaultHttpClient client = new DefaultHttpClient();//请求超时httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 60000); //读取超时httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 60000);HttpClient:HttpClient client = new HttpC 阅读全文
posted @ 2012-05-14 14:42 Ronald9 阅读(467) 评论(0) 推荐(0) 编辑