Fiddler不会解压缩gzip响应 [英] Fiddler doesn't decompress gzip responses

查看:692
本文介绍了Fiddler不会解压缩gzip响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Fiddler调试我的应用程序.每当服务器压缩响应而不是解压缩响应时,Fiddler都会显示不可读的二进制数据:

I use Fiddler to debug my application. Whenever the response is compressed by server, instead of decompressed response, Fiddler shows unreadable binary data:

/* Response to my request (POST) */
HTTP/1.1 200 OK
Server: xyz.com
Date: Tue, 07 Jun 2011 22:22:21 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip

14
����������������
0

如何解压缩响应?

推荐答案

我使用的是Fiddler版本2.3.4.4,只是注意到在检查器"选项卡(原始"子选项卡)中,响应部分上方(对于gzip, -ed响应),出现"Response is encoded and may need to be decoded before inspection. Click here to transform." 如果单击它,则响应变得可读. 这些设置几乎是默认设置,我只是安装了Fiddler而没有进行任何更改.

I use fiddler version 2.3.4.4 and just noticed that in the Inspectors tab ("Raw" sub-tab), above the response section (in case of gzip-ed response), appears "Response is encoded and may need to be decoded before inspection. Click here to transform." If you click on that, the response becomes readable. The settings are pretty much the default, I just installed Fiddler and did not change anything.

这篇关于Fiddler不会解压缩gzip响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆