“请求范围不满足”Android错误416中的http get请求错误

时间:2015-12-24 07:13:12

标签: android json http get

我尝试了下面的代码,但它给出了错误 要求的范围不可满足

String paramString = URLEncodedUtils.format(params, "utf-8");
url = url.replace(" ", "+");
//  url += "?" + paramString;
Log.e("-------------------------->", paramString.toString());
HttpGet httpGet = new HttpGet(url);
Log.e("url--- is:-",""+url);
httpGet.setHeader("Accept-Ranges","none");
HttpResponse httpResponse = httpClient.execute(httpGet);

HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();

0 个答案:

没有答案