Skip to content

How to solve the problem of CircularRedirectException #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xiedantibu opened this issue Nov 29, 2012 · 7 comments
Closed

How to solve the problem of CircularRedirectException #145

xiedantibu opened this issue Nov 29, 2012 · 7 comments
Assignees
Labels
Milestone

Comments

@xiedantibu
Copy link

How to solve the problem of callback about:org.apache.http.client.CircularRedirectException: Circular redirect to

@letroll
Copy link

letroll commented Mar 5, 2013

it's not solve ur problem

@giancar70
Copy link

Yo need to add the next code

AsyncHttpClient async_client = new AsyncHttpClient();
async_client.getHttpClient().getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);

that's works for me.

@smarek
Copy link
Member

smarek commented Oct 14, 2013

@giancar70 is correct

@smarek smarek closed this as completed Oct 14, 2013
@ghost ghost assigned smarek Oct 14, 2013
@smarek
Copy link
Member

smarek commented Oct 14, 2013

#184 is solved (not merged as it was), but there is solution.

@vvasuki
Copy link

vvasuki commented Apr 13, 2017

I am facing this very problem, but giancar's solution no longer works.. I suspect because of dependency problems:
image

Can someone suggest a workaround?

@vvasuki
Copy link

vvasuki commented Apr 13, 2017

Ah this seems to work:
asyncHttpClient.setEnableRedirects(true, true, true);

@Royalone94
Copy link

Ah this seems to work:
asyncHttpClient.setEnableRedirects(true, true, true);

It did worked on my side.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants