How to keep HTTP responses with Content-Encoding from being decoded?
How to keep HTTP responses with Content-Encoding from being decoded?
- Subject: How to keep HTTP responses with Content-Encoding from being decoded?
- From: Jens Alfke <email@hidden>
- Date: Tue, 04 Aug 2015 12:26:52 -0700
Is there any way to disable NSURLConnection from automatically decoding a gzip-encoded HTTP response?
That is, I’m requesting a resource whose response headers include “Content-Encoding: gzip”, and I want to capture the compressed form. (I’m saving it to disk and I want it to stay compressed; also there’s an external checksum of the resource in its compressed form, and if I were to re-compress it I’d be likely to arrive at the wrong checksum.)
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden