I have this code on my Android phone.
URI uri = new URI(url); HttpPost post = new HttpPost(uri); HttpClient client = new DefaultHttpClient(); Htt
I would just do it the old way. It's a more bulletproof than ResponseHandler, in case you get different content types in the response.
ByteArrayOutputStream outstream = new ByteArrayOutputStream(); response.getEntity().writeTo(outstream); byte [] responseBody = outstream.toByteArray();