【发布时间】:2011-12-02 23:07:49
【问题描述】:
我在 Google 上使用 Fiddler,我注意到内容类型 json 到达如下:
HTTP/1.1 200 OK
Date: Fri, 02 Dec 2011 22:55:56 GMT
Expires: -1
Cache-Control: no-cache, must-revalidate
Content-Type: application/json; charset=UTF-8
Pragma: no-cache
Content-Disposition: attachment
Content-Encoding: gzip
Server: gws
Content-Length: 317
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
--some big big big big encoded stuff here...--
所以问题是:我可以使用一些工具或创建一些代码来解压缩这个结果,看看--some big big big big encoded stuff here...--里面是什么吗?
【问题讨论】:
-
在这里勉强出去,但你试过gzip吗?尤其是二进制有效负载上的 gzcat?
-
您还可以删除“Accept-Encoding: gzip”客户端标头,以便服务器回复纯文本而不是压缩。