您的位置:首页 > 理论基础 > 计算机网络

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提交数据
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐