What encoding string tells a web server NOT to send gzip content?

后端 未结 2 968
醉酒成梦
醉酒成梦 2020-12-24 11:10

This encoding header tells a web server to send gzip content if available.

\'accept-encoding\': \'gzip,deflate,sdch\',

How can I instruct t

2条回答
  •  天命终不由人
    2020-12-24 11:51

    Not including the accept-encoding header implies that you may want the default encoding, i.e. identity. The caveat here is that the RFC2616 sec 14.3 allows the server to assume any available encoding is acceptable.

    To explicitly request plain text, set 'accept-encoding: identity'

提交回复
热议问题