我正在尝试使用ngrep在笔记本电脑和github.com之间捕获HTTP消息,但有些响应不是人类可读的,因为它们是以分块编码和压缩方式发送的,例如:
T 207.97.227.239:80 -> 192.168.0.175:41372 [AP]
HTTP/1.1 404 Not Found.
Server: GitHub.com.
Date: Sun, 31 Mar 2013 09:50:25 GMT.
Content-Type: text/plain.
Transfer-Encoding: chunked.
Connection: keep-alive.
Content-Encoding: gzip.
.
25.
..........
J-./.,./.T../QH./.K........
如何解压缩回复?或者是否有比ngrep更好的工具来捕获HTTP消息?