大马资讯论坛 - 马来西亚中文资讯平台

标题: [教学] DefaultHttpClient HttpGet HttpResponse 提高效率,加快速度 [打印本页]

作者: 资讯王    时间: 2016-8-26 22:40
标题: [教学] DefaultHttpClient HttpGet HttpResponse 提高效率,加快速度
DefaultHttpClient HttpGet HttpResponse SLOW 提高效率,加快速度

Add HttpVersion.HTTP_1_1 添加 HttpVersion.HTTP_1_1
  1. DefaultHttpClient httpClient = new DefaultHttpClient();
  2. httpClient.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
  3.                
复制代码



HTTP Post requests using HttpClient take 2 seconds, why?
http://stackoverflow.com/questio ... -take-2-seconds-why




欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/) Powered by Discuz! X3.3