Re: Does NSURLConnection automatically decode gzip'd data?
Re: Does NSURLConnection automatically decode gzip'd data?
- Subject: Re: Does NSURLConnection automatically decode gzip'd data?
- From: Steve Palmer <email@hidden>
- Date: Sun, 19 Jun 2005 11:36:23 -0700
Thanks for the confirmation, Zach! I'll file feedback to suggest
Apple clarify this in their documentation.
- Steve
On Jun 18, 2005, at 11:51am, Zach Wily wrote:
I'm using NSURLConnection under Mac OSX 10.4.1 to asynchronously
grab data from an HTTP source and I'm sending Accept-Encoding:
gzip in the header. Upon inspecting the HTTP data being returned,
I'm seeing Content-Encoding: gzip - all good and expected. However
the data that is being returned to didReceiveData is actually
uncompressed.
I've verified with wget that the source I'm testing against does
indeed send gzip compressed binary data. So the only conclusion
I'm drawing is that NSURLConnection is decompressing the data for
me before passing it to didReceiveData.
However none of the documentation state that this is expected to
happen. Instead I've seen suggestions that this sort of feature is
only available through NSURLDownload. Specifically Scott Anguish's
presentation at http://homepage.mac.com/sanguish/ORA-2003/
FoundationURLAPI-2003.pdf seems to draw this distinction.
So - is this missing clarification from the Apple documentation or
is this new in Tiger (I don't yet have a Panther system to test
against) or am I smoking crack?
NSURLConnection did this auto-decoding in Panther as well.
zach
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden