Does NSURLConnection automatically decode gzip'd data?
Does NSURLConnection automatically decode gzip'd data?
- Subject: Does NSURLConnection automatically decode gzip'd data?
- From: Steve Palmer <email@hidden>
- Date: Fri, 17 Jun 2005 18:14:18 -0700
Can somebody please confirm something for me?
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?
- Steve
_______________________________________________
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