hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd W Lainhart <lainh...@us.ibm.com>
Subject Re: HttpClient with CircularRedirectException
Date Wed, 15 Oct 2014 13:28:28 GMT
srihari na <namasrihari@gmail.com> wrote on 10/15/2014 04:38:23 AM:

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

An obvious guess is that the other clients are following the redirects to 
some sort of resolution.  Take a look at network traffic between the 
client and the server to confirm this.  An excessive number of redirects 
(circular or otherwise) might be an indication of some sort of problem on 
the server, which the circularRedirects property can alert you to.  From 

     * Determines whether circular redirects (redirects to the same 
location) should
     * be allowed. The HTTP spec is not sufficiently clear whether 
circular redirects
     * are permitted, therefore optionally they can be enabled
     * <p/>
     * Default: <code>false</code>
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message