I'm currently working on a proxy server where we in this case have to modify the data (by using regexp) that we push through it.
In most cases it works fine except for websites that use gzip as content-encoding (I think), I've come across a module called compress and tried to push the chunks that I receive through a decompress / gunzip stream but it isn't really turning out as I expected.
I was wondering if I am at all heading in the right direction, and if there are more modules out there to make my life easier (regarding gzip compression).
Greetz,
Benjamin
If you think your proxy is just for filtering or modifying text, you feel verbose about gzip compression and decompression.
Another solution is simple.
Modify http request header. Then you can get plain text from server.
Remove 'Accept-Encoding' from http request header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With