if (HttpClientParams.isRedirecting(this.params) && this.redirectStrategy.isRedirected(
this.currentRequest, this.currentResponse, this.localContext)) {
int maxRedirects = this.params.getIntParameter(ClientPNames.MAX_REDIRECTS, 100);
if (this.redirectCount >= maxRedirects) {
throw new RedirectException("Maximum redirects ("
+ maxRedirects + ") exceeded");
}
this.redirectCount++;
HttpUriRequest redirect = this.redirectStrategy.getRedirect(