code: private static byte[] requestWebContent(String url) throws TVRageException {
          try {
              HttpGet httpGet = new HttpGet(url);
              httpGet.addHeader("accept", "application/xml");
              final DigestedResponse response = DigestedResponseReader.requestContent(httpClient, httpGet, CHARSET);
  
              if (response.getStatusCode() >= 500) {
                  throw new TVRageException(ApiExceptionType.HTTP_503_ERROR, url);
              } else if (response.getStatusCode() >= 300) {
                  throw new TVRageException(ApiExceptionType.HTTP_404_ERROR, url);
              }
  
              return response.getContent().getBytes(DEFAULT_CHARSET);
          } catch (IOException ex) {
              throw new TVRageException(ApiExceptionType.MAPPING_FAILED, UNABLE_TO_PARSE, url, ex);
          }
      }
docs: Get content from URL in byte array
  
  @param url
  @return
  @throws TVRageException