-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Endless redirects when behind a proxy/firewall #246
Comments
could you print r_url value from this line https://github.com/KeepSafe/aiohttp/blob/master/aiohttp/client.py#L133 |
Sure. I threw in a
|
should be fixed in master |
@fafhrd91 please elaborate -- I don't follow. |
I think proxy expects http:// in path On Thursday, January 15, 2015, Andrew Svetlov notifications@github.com
|
Yeah, it looks like converting "http://" to "http%3A//" was what was causing problems with the redirect. |
Got it, thanks. |
I've run into an issue where request() never successfully redirects when I'm behind a work firewall/proxy. If I run the following:
and step through it with the debugger, I see that the final response status is a 307 redirect, and that aiohttp is creating an endlessly-longer redirect url: first
http://webproxy/<sessionID>/http://google/com/
, thenhttp://webproxy/<sessionID>/http://webproxy/<sessionID>/http://google.com/
, thenhttp://webproxy/<sessionID>/http://webproxy/<sessionID>/http://webproxy/<sessionID>/http://google.com/
, and so on.I don't see this behavior with urllib.
urlopen('http://google.com/')
handles the redirects and properly loads Google.Any thoughts on what might be happening?
The text was updated successfully, but these errors were encountered: