public static InputStream get(HttpClient httpClient,
                                  URI requestURI) throws IOException {
        HttpEntity entity = doGet(httpClient, requestURI);
        if (entity == null) {
            return new ByteArrayInputStream(new byte[0]);
        }
        return entity.getContent();
    }
public static InputStream get ( HttpClient httpClient , URI requestURI ) throws IOException { HttpEntity entity = doGet ( httpClient , requestURI ) ; if ( entity == null ) { return new ByteArrayInputStream ( new byte [ 0 ] ) ; } return entity . getContent ( ) ; }
Performs an HTTP GET using the given client, returning an input stream
over the response body. The caller MUST close the stream when finished.

@param httpClient the client to use.
@param requestURI the http or https url.
@return an input stream over the response body.
@throws IOException if the request fails for any reason, including
a non-200 status code.