What header should be used for sending GZIP compressed JSON from Android Client to Server?

前端 未结 3 1281
别跟我提以往
别跟我提以往 2020-12-14 08:03

This question is extension to the question here. I am using the code here reproduced below to GZIP compress a JSONObject.

String foo = \"value\         


        
3条回答
  •  时光取名叫无心
    2020-12-14 08:19

    To inform the server that you are sending gzip-encoded data, send the Content-Encoding header, not Accept-Encoding.

提交回复
热议问题