3. gzip compression

It is very simple to turn this on in the client. Use a ContentEncodingHttpClient instead of the DefaultHttpClient. e.g. in the snippet above replace the
DefaultHttpClient httpclient variable with the following