I have pcap files with http contents compressed by gzip, and want to export each stream to a text file. I know wireshark can export the uncompressed contents by GUI, but exporting each file manually is time wasting. I want to do this by tshark automatically. I tried followings:
However, "-o http.decompress_body:TRUE" does not seem to work correctly. Any ideas? asked 03 May '14, 22:07 hseisyu edited 03 May '14, 23:25 |
One Answer:
the option does work, but the 'Follow TCP stream' function does not decompress the HTTP response, neither in Wireshark (GUI) nor in tshark (CLI), as that's not implemented yet. The 'Follow TCP stream' function just shows the contents of the TCP payload as it is transmitted over the wire. There is an enhancement request: However, a patch that implemented the feature has never been accepted due to some problems. So, if you need to extract the HTTP payload, including uncompressed HTTP responses, your options are:
Regards answered 04 May '14, 08:57 Kurt Knochner ♦ |