In this article I will explain how to decompress web responses that are compressed with GZip or Deflate compression.
I battled with this problem for 5 hours which was mainly due to the fact that most of the GZip methods out there on the net are flawed when applied to certain scenarios.
This led me down the path of trying nearly every conceivable uncompression method I could find that would work on GZipped http responses.
Firstly, a quick overview of HTTP Compression. (feel free to skip this section)
Web-Servers will use Http Compression if both your browser and the web-server support http-compression.