问题描述
我决定开始测试与Android 4.4我的应用程序,发现Android的HTTP连接API是比以前更严格?我从未有过这个问题,我认为这是某种类型的bug。
我要连接到包含特定冰冷的标题响应Shoutcast一样播放。
有没有人见过这个问题?我怎样才能解决它得到什么呢?
本次测试使用的网址:
http://50.117.121.162:80
异常logcat的:
在Android 4.4系统的事情做了罩和无标准Shoutcast一样ICY头的响应不再支持下的变化。就像Apache的HttpClient库。
我不得不这样做可以在这个帖子中找到:
如何分析一个无标准的HTTP响应?
I decided to start testing my app with Android 4.4 and noticed that the Android HTTP connection APIs are much stricter than before? I have never had this issue and I assume it is some type of bug.
I'm connecting to SHOUTcast broadcasts that contain the particular icy header response.
Has anyone seen this issue? How can I get around it?
URL used for this test:
http://50.117.121.162:80
Logcat of exception:
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.
What I had to do can be found on this post:
How to parse a none standard HTTP response?
这篇关于Android 4.4系统的HTTP API错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!