hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srihari na <namasrih...@gmail.com>
Subject Re: HttpClient with CircularRedirectException
Date Wed, 15 Oct 2014 08:38:23 GMT
Hi All,

My concern is why the Http Client library is hitting Circular redirect or
maximum redirect issue where as normal rest client or simple java program
does not have any issue while invoking the URL.

On Tue, Oct 14, 2014 at 8:25 PM, Todd W Lainhart <lainhart@us.ibm.com>
wrote:

> >
> > We are using HttpClient version 4.2.5 and we did try the
> > option
> client.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS,
> > true);, however this hits maximum redirects hits occurred around 100.
> >
>
> Don't you want to set that to 'false'?  I believe that you can also set
> MAX_REDIRECTS.
>
> I have been successful in disabling circular redirect checking.




-- 
Regards,
Srihari NA

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message