httpget请求在android4.4系统出现java.net.ProtocolException: Unexpected status line:
16lz
2021-01-24
该问题出现的原因是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提交数据
更多相关文章
- Android(安卓)Studio下,gradle project sync failed 错误
- Android(安卓)- ViewPager使用PagerAdapter,instantiateItem时出
- Android(安卓)studio 升级2.2 之后 Maven插件不能使用解决
- Error:Execution failed for task ':app:packageDebug'. > !zip.
- AS Gradle构建失败异常:Could not download gradle.jar (io.fabr
- Warning:The specified Android(安卓)SDK Build Tools version (
- 【android】解决Viewpager设置高度为wrap_content无效的方法
- 关于Android的ActionBar不能显示左上角的图标解决方案
- Android(安卓)studio报错module not specified解决方案