How to store an Http Response that may contain binary data?

前端 未结 5 1711
情话喂你
情话喂你 2020-12-31 19:03

As I described in a previous question, I have an assignment to write a proxy server. It partially works now, but I still have a problem with handling of gzipped information.

5条回答
  •  被撕碎了的回忆
    2020-12-31 19:34

    I had the same problem. I commented the line which adds the header accept gzip:

    con.setRequestProperty("Accept-Encoding","gzip, deflate");
    

    ...and it worked!

提交回复
热议问题