httpget请求在android4.4系统出现java.net.ProtocolException: Unexpected status line:
2014-11-20 11:33
453 查看
该问题出现的原因是4.4系统get时不再提交请求头,外国程序员对bug的解释:
On Android 4.4 things did change under the hood and the none standard SHOUTcast ICY header response is no longer supported. Just
like the Apache HTTPClient library.
详情请看:
http://stackoverflow.com/questions/19738798/android-4-4-http-api-bugs/19836471
解决方案:
1.服务器忽略get请求头
2.post提交数据
On Android 4.4 things did change under the hood and the none standard SHOUTcast ICY header response is no longer supported. Just
like the Apache HTTPClient library.
详情请看:
http://stackoverflow.com/questions/19738798/android-4-4-http-api-bugs/19836471
解决方案:
1.服务器忽略get请求头
2.post提交数据
相关文章推荐
- httpget请求在android4.4系统出现java.net.ProtocolException: Unexpected status line:
- Android get请求出现java.net.ProtocolException: Unexpected status line
- java.net.ProtocolException: Unexpected status line: 关于Java/Android http post json的发送接收
- HttpClient 通过域名访问请求接口出现java.net.UnknownHostException解决方法
- ASP.NET(IIS)出现"没有为请求类型"GET"找到 HTTP 处理程序"
- java.net.URLConnectioin的http(get,post)请求(原生)
- HttpClient 通过域名访问请求接口出现java.net.UnknownHostException解决方法
- web服务器(jetty)处理请求出现NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
- Tomcat7出现HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl的解决
- java发送http的get、post请求
- .net webservice 因 URL 意外地以“/GetAllArticle”结束,请求格式无法识别。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该
- Java HTTP方式请求ASP.NET(C#)WebService
- wp7使用POST请求Asp.net网页时,HttpWebRequest的BeginGetResponse方法抛出NotSupportException异常的解决方法
- 纯java版本的http get和post请求
- java发送http的get、post请求
- java使用socket实现http简单get请求
- Java模拟HTTP的Get和Post请求
- java httpclient发送post get 请求
- 用ASIHttpRequest通过post请求给java服务器上传的代码(不会出现乱码)