PDA

View Full Version : GZIP Compression on an HTTP call




Fontano
Nov 3, 2008, 09:02 PM
I thought I posted this earlier, but I must not have hit submit or something...
Anyway...

I am looking to improve the performance of my Web Service calls to pull TEXT based data. We can easily turn on GZIP compression on the server (Apache servers).

The question though is, do I need to do anything special on the iPhone call, to allow it to receive and work with a GZIP compressed stream?

I am reading in a TEXT file (REST Service), and then parsing it out, similar to this thread: http://forums.macrumors.com/showthread.php?t=593556

Our early tests show the data stream compresses significantly, so we would like to take advantage of that. Especially since we have to account for Edge, 3G, WiFi connections and the changing data speeds.

Thanks



fenrus110
Mar 18, 2009, 12:57 PM
holy old thread revival!

I'm looking into something like this too. Our client is sending 600k worth of data to our app (no choice). He is suggesting to have the server send a gzip so only ~20k is sent, which the iPhone would deflate. The question is whether the iPhone SDK can work with this...