Last modified: 2014-02-25 02:13:46 UTC
$req->setHeader( 'Accept-Encoding', 'gzip' ); would be useful, but there isn't support for it.
Should this even be necessary? I think that the cURL backend ignores this and sets it's own accept-encoding, and then returns the decoded response. The PHP backend does send this accept-encoding header *if asked by the caller* (e.g. with the code you mentioned), but does not decode the response. I think we should modify the PHP backend to behave the same as the cURL one, and don't bother relying on the caller to set Accept-Encoding.