• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Does NSURLConnection automatically decode gzip'd data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Does NSURLConnection automatically decode gzip'd data?
      • From: Zach Wily <email@hidden>
    • Re: Does NSURLConnection automatically decode gzip'd data?
      • From: Nicko van Someren <email@hidden>
    • Re: Does NSURLConnection automatically decode gzip'd data?
      • From: email@hidden
  • Prev by Date: [SOLVED] NSManagedObject setValue:forKey: slow
  • Next by Date: Re: "Default" Value In Object
  • Previous by thread: [SOLVED] NSManagedObject setValue:forKey: slow
  • Next by thread: Re: Does NSURLConnection automatically decode gzip'd data?
  • Index(es):
    • Date
    • Thread