Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fiddler doesn't decompress gzip responses

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

How can I get the response decompressed?

like image 571
Xaqron Avatar asked Jun 07 '11 22:06

Xaqron


3 Answers

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.

like image 155
Priednis Avatar answered Nov 02 '22 22:11

Priednis


If you don't want to have to click per response as in the accepted answer, using the menu, click Rules -> Remove All Encodings.

like image 29
David Peden Avatar answered Nov 02 '22 22:11

David Peden


From the fiddler faq

Q: I like to navigate around a site then do a "search" for a text on all the logged request/responses. I was curious if Fiddler automatically decompressed gzipped responses during search?

A: Fiddler does not decompress during searches by default, since it would need to keep both the compressed and decompressed body in memory (for data integrity reasons).

In current versions of Fiddler, you can tick the "Decode Compressed Content" checkbox on the Find dialog.

Here is a link to the site

http://www.fiddler2.com/fiddler/help/faq.asp

like image 30
Brian Dishaw Avatar answered Nov 02 '22 23:11

Brian Dishaw