我决定开始使用
Android 4.4测试我的应用程序,并注意到Android HTTP连接API比以前更严格?我从来没有这个问题,我认为这是一种类型的错误.
我正在连接到包含特定的冰标题响应的SHOUTcast广播.
有没有人看到这个问题?我该怎么办?
用于此测试的URL:
http://50.117.121.162:80
Logcat异常:
11-01 23:47:57.299: E/ConnectHelper(3081): java.net.ProtocolException:
Unexpected status line: ICY 200 OK 11-01 23:47:57.299:
E/ConnectHelper(3081): at
com.android.okhttp.internal.http.RawHeaders.setStatusLine(RawHeaders.java:108)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:308)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.vblast.xiialive.media.streamers.ConnectHelper.connectWorker(ConnectHelper.java:176)
11-01 23:47:57.299: E/ConnectHelper(3081): at
com.vblast.xiialive.media.streamers.ConnectHelper.run(ConnectHelper.java:143)
11-01 23:47:57.299: E/ConnectHelper(3081): at
java.lang.Thread.run(Thread.java:841)