code: private String getContent(String url) throws RottenTomatoesException {
          LOG.trace("Requesting: {}", url);
          try {
              final HttpGet httpGet = new HttpGet(url);
              httpGet.addHeader("accept", "application/json");
              final DigestedResponse response = DigestedResponseReader.requestContent(httpClient, httpGet, charset);
  
              if (response.getStatusCode() >= HTTP_STATUS_500) {
                  throw new RottenTomatoesException(ApiExceptionType.HTTP_503_ERROR, response.getContent(), response.getStatusCode(), url);
              } else if (response.getStatusCode() >= HTTP_STATUS_300) {
                  throw new RottenTomatoesException(ApiExceptionType.HTTP_404_ERROR, response.getContent(), response.getStatusCode(), url);
              }
  
              return response.getContent();
          } catch (IOException ex) {
              throw new RottenTomatoesException(ApiExceptionType.CONNECTION_ERROR, "Error retrieving URL", url, ex);
          }
      }
docs: Get the content from a string, decoding it if it is in GZIP format
  
  @param urlString
  @return
  @throws RottenTomatoesException