httpget请求在android4.4系统出现java.net.ProtocolException: Unexpected status line:

该问题出现的原因是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,android)