code: private static InputStream getServerResponseAsStream(String protocol,
                                              String user,
                                              String pass,
                                              String path) throws IOException {
          String url = getBaseURL(protocol) + path;
          logger.info("Getting URL: {}", url);
          UsernamePasswordCredentials creds =
                  new UsernamePasswordCredentials(user, pass);
          return s_webClient.get(url, true, creds);
      }
docs: Hits the given Fedora Server URL and returns the response as a String.
  Throws an IOException if the response code is not 200(OK).