摘要: 出现问题:当getContentLength();返回时-1或者是0时候。 解决办法:需加上conn.setRequestProperty("Accept-Encoding", "identity"); 解释:在默认情况下,HttpURLConnection 使用 gzip方式获取,文件 getCo 阅读全文
posted @ 2017-02-20 23:17 默默笙萧 阅读(9124) 评论(0) 推荐(0) 编辑