GZIP Compression on an HTTP call

Discussion in 'iOS Programming' started by Fontano, Nov 3, 2008.

  1. Fontano macrumors member

    Jun 27, 2008
    I thought I posted this earlier, but I must not have hit submit or something...

    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.

  2. fenrus110 macrumors regular

    Mar 24, 2008
    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...

Share This Page