Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ace2600

macrumors member
Original poster
I've read that NSURLConnection automatically decompresses request that are gzipped. Without having to specify accept-encoding or anything in the request. In doing an asynchronous NSURLConnection, I print the lengths of the returned data in each didReceiveData call, but it appears to be the uncompressed length.

Does NSURLConnection decompress the data before sending to didReceiveData? How can I tell if the data being received was originally compressed?

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.