packetnet-connections icon indicating copy to clipboard operation
packetnet-connections copied to clipboard

Added support for Brotli compression

Open bstordrup opened this issue 2 years ago • 4 comments

Adding support for Brotli compressio.

Fixes #54

bstordrup avatar Feb 03 '23 06:02 bstordrup

Unfortunately, I don't have a pcap file containing Brotli encoded material, so I'm not able to provide unit test for this.

bstordrup avatar Feb 03 '23 07:02 bstordrup

Hi @bstordrup, how do we know this is the right approach for decoding this compression? I think we would need a test stream, even if it was a pcap stream from somewhere else that we could use here. Thoughts on where we might get one?

chmorgan avatar Feb 04 '23 23:02 chmorgan

@chmorgan, I know of a page that supports compressing the result with Brotli. I can see if I can capture something from it with Wireshark.

bstordrup avatar Feb 13 '23 06:02 bstordrup

Added a pcap file that contains a HTTP GET request to an REST API project and returns a brotli compressed response in form of a Json file.

And added a unit test that evaluates this pcap file in the same way as handling the gziped contents pcap.

bstordrup avatar Feb 13 '23 08:02 bstordrup