做Android 客户端网络网络通信的
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
错误提示
java.lang.ClassCastException: org.apache.harmony.luni.internal.net.www.protocol.http.FixedLengthInpu
解决方法:
我现在知道的原因
1.把HttpURLConnection写成HttpsURLConnection
2.url.openConnection();写成url.getContent();