Reference: http://hc.apache.org/httpcomponents-client-ga/tutorial/html/httpagent.html#d4e1261
This page says the following code will setup HttpClient
to automatically handle gzip responses (transparent to the user of HttpClient
):
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.addRequestInterceptor(new RequestAcceptEncoding());
httpclient.addResponseInterceptor(new ResponseContentEncoding());
However, I cannot find the RequestAcceptEncoding
and ResponseContentEncoding
classes in the Android SDK. Are they just missing -- do I need to write these myself?