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 ( ) ; } }
Send a request .