-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Fails on Redirects - Request Failed 302 #119
Comments
Turns out it fails specifically on http to https redirects. The above url you gave redirects to The HttpUrlConnection docs indicate that it normally follows up to 5 redirects, but not http to https redirects. Thanks for reporting this, I'll continue to look in to it. |
In the meantime you can fix this by changing to using https: |
Can volley or okhttp help? |
Using OkHttp seems to fix the issue. Thanks for pointing that our @TWiStErRob. |
Thanks for looking in to this @alenz316 and @TWiStErRob. I have a fix for the default version, but I'm trying to look more into the security implications of following http -> https redirects. I assume HttpUrlConnection disables these by default for a reason. Glad to know OkHttp works. |
As @bubbleguuum pointed out, this doesn't handle relative redirects, re-opening. |
I was still getting this crash or perhaps similiar when DLing a Facebook Image URL https://graph.facebook.com/10155197719330646/picture?width=200&height=200. Using any other ImageURL works. I tried upgrading and OKHTTP, Glide, and Glide OKHTTP Integration to latest and it still crashes on the Facebook URL. Any ideas? |
Can you file a new issue and fill out the template (you can find a link to the template in CONTRIBUTORS.md)? |
Glide does not follow redirects (302).
Sample:
Glide fails when trying to get Facebook profile pics through the Graph endpoint.
The text was updated successfully, but these errors were encountered: