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: Zach Wily <email@hidden>
- Date: Sat, 18 Jun 2005 12:51:32 -0600
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