Re: Right way to use EntityUtils.toString()

2018-09-16 Thread Alexey Panchenko
Hi, The right way would be executing queries like this: String response = httpClient.execute(new HttpGet(url), new BasicResponseHandler()); Regards, Alex On Sat, Sep 15, 2018 at 11:30 PM Joan Balagueró < joan.balagu...@grupoventus.com> wrote: > Hello, > > > > This is the first time I need to

Right way to use EntityUtils.toString()

2018-09-15 Thread Joan Balagueró
Hello, This is the first time I need to use EntityUtils.toString(). My code is: try { ( . . . ) response = cluster.getHttpClient().performRequest(request); String body = EntityUtils.toString(response.getEntity(), GenericConstants.ENCODING_UTF8); ( . .