Java tutorial
//package com.java2s; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.util.EntityUtils; public class Main { /** * Method to process the response and return the result in a readable format * @param response * @return String * @throws Exception */ public static String processResponse(HttpResponse response) throws Exception { HttpEntity resEntity = response.getEntity(); String result = EntityUtils.toString(resEntity); return result.toString(); } }