/** * Set follow redirects. * * @param followRedirects When true the client will follow redirects. */ public static void setFollowRedirects(HttpClient httpClient, boolean followRedirects) { new ClientParamBean(httpClient.getParams()).setHandleRedirects(followRedirects); }