Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 13, 2009, 11:59 PM   #1
ace2600
macrumors member
 
Join Date: Mar 2008
Location: Austin, Texas
gzip handling in NSURLConnection

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!
ace2600 is offline   0 Reply With Quote
Old Jan 14, 2009, 02:57 AM   #2
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
I seem to recall reading somewhere that this behavior was an unannounced change between SDK versions.
caveman_uk is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: AFNetworking Vs NSURLConnection ? Tander iPhone/iPad Programming 3 Jul 30, 2013 04:36 AM
Error handling in NSURLConnection sendAsynchronousRequest waterskier2007 iPhone/iPad Programming 1 Mar 1, 2013 08:57 AM
Uploading file using NSURLConnection mycompuser Mac Programming 4 Nov 27, 2012 07:10 AM
Handling the iPad berthenderson iPad 2 Aug 18, 2012 09:09 PM
Help with gzip gescom Web Design and Development 2 Jul 25, 2012 06:29 AM

Forum Jump

All times are GMT -5. The time now is 04:42 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC