java.util.zip.ZIPException: Not in GZIP format - Stack Overflow
connection.setRequestProperty("Accept-Encoding", "gzip,deflate,sdch"
Your request says it is willing to accept any of gzip
, deflate
and sdch
encoding. Ine approach is to look at the response-headers
to see what type of encoding the server uses and decode it appropriately.
Another approach is to accept only gzip
Read full article from java.util.zip.ZIPException: Not in GZIP format - Stack Overflow
No comments:
Post a Comment