HttpURLConnection.getInputStream java.io.FileNotFoundException
判断getResponseCode,当返回不是HttpURLConnection.HTTP_OK, HttpURLConnection.HTTP_CREATED, HttpURLConnection.HTTP_ACCEPTED 时,不能用getInputStream(),而是应该用getErrorStream()public String sendGet(String url, S
原创
2017-02-06 13:49:37 ·
7312 阅读 ·
4 评论