code: protected static CloseableHttpResponse getResource(String fullURL) throws IOException,
        URISyntaxException {
      URI uri = new URIBuilder(fullURL).build();
  
      try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
        /* read url */
        HttpGet httpget = new HttpGet(uri);
        LOG.debug("Executing request " + httpget.getRequestLine());
        return httpclient.execute(httpget);
  
      }
  
    }
docs: Call a GET routine on given resource URL.
  
  @param fullURL the resource URL
  @return Response
  @throws IOException IO error
  @throws URISyntaxException if url is not valid