code: public static void getTo(
                      final URL from_url,
                      final OutputStream to_stream,
                      final List<MediaType> accept_media_types
                      )
      {
          _LOG_.debug( "HTTP GET: from URL=" + from_url + ", accept=" + accept_media_types );
  
          AcceptHeaderRequestCallback  callback =
                          new AcceptHeaderRequestCallback( accept_media_types );
          OutputStreamResponseExtractor  extractor = new OutputStreamResponseExtractor( to_stream );
          _execute( from_url, HttpMethod.GET, callback, extractor );
      }
docs: HTTP GET: Receives the contents from the specified URL and writes them to the given stream.
  
  @throws  HttpException
  when an exceptional condition occurred during the HTTP method execution.