public static String getResponseAsString(String uri, Header header) {
        HttpGet httpGet = new HttpGet(uri);
        httpGet.setHeader(header);
        request(httpGet);
        return request(httpGet);
    }
public static String getResponseAsString ( String uri , Header header ) { HttpGet httpGet = new HttpGet ( uri ) ; httpGet . setHeader ( header ) ; request ( httpGet ) ; return request ( httpGet ) ; }
Gets response as string.

@param uri    the uri
@param header the header
@return the response as string