code: public static String getUri(String uri) throws IOException {
          CloseableHttpClient c = newHttpClient(new URL(uri));
          HttpGet get = new HttpGet(uri);
          LOG.debug("GET {}", uri);
          CloseableHttpResponse res = c.execute(get, HttpClientContext.create());
          return checkResponse(res);
      }
docs: Gets the response body as string of specified uri.
  
  @param uri http/https uri
  
  @return response body
  
  @throws IOException in case of any IO related issue