docs: public void setMaxRedirects(int maxRedirects) {
          if (maxRedirects < 0) {
              throw new IllegalArgumentException("Parameter maxRedirects must be greater or equal to zero.");
          }
          client.getParams().setIntParameter(HttpClientParams.MAX_REDIRECTS, maxRedirects);
          clientViaProxy.getParams().setIntParameter(HttpClientParams.MAX_REDIRECTS, maxRedirects);
      }