I’m building an application that makes HTTP requests to various servers (not controlled by me). As such, I need it to handle all possible Content-Encoding values properly (gzip, compress, deflate). In order to test my application I quickly installed Apache, but only to realize it only supports gzip compression. That is, if I send, for example, Accept-Encoding: deflate, it will not encode the response at all.
- How can I enable
deflateandcompressencodings in Apache? or - Are there other, more useful tools for this task?
If it’s just for testing, you can actually implement it yourself within PHP.