code: public HttpResponse sendRequest(PiwikRequest request) throws IOException{
          HttpClient client = getHttpClient();
          uriBuilder.replaceQuery(request.getUrlEncodedQueryString());
          HttpGet get = new HttpGet(uriBuilder.build());
  
          try {
              return client.execute(get);
          } finally {
              get.releaseConnection();
          }
      }
docs: Send a request.
  @param request request to send
  @return the response from this request
  @throws IOException thrown if there was a problem with this connection