title: Decompressing gzip packets with python
body: <p>I'm creating a PCAP parser and analyzer in Python with the Scapy package but I'm running into an issue where just about everything is compressed with gzip. Is there a way for me to have gzipped packet payloads decompressed as my program loops through the PCAP file?</p>
  
  <p>In the packet payload there is this line:</p>
  
  <pre><code>Accept-Encoding: gzip,deflate
  </code></pre>
  
  <p>What does that mean?</p>