How can I avoid circular redirect using HttpClient 4.1.1. As I am getting the error like this:-
executing requestGET http://home.somehost.com/Mynet/pages/cHo
You can set the ClientPNames.ALLOW_CIRCULAR_REDIRECTS to true, this will allow redirects to the same location.
client.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);
See more info here