Skip to content
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

Redirects are broken #84

Closed
schlamar opened this issue Jun 26, 2012 · 2 comments
Closed

Redirects are broken #84

schlamar opened this issue Jun 26, 2012 · 2 comments

Comments

@schlamar
Copy link
Contributor

>>> m = PoolManager()
>>> m.request('GET', 'https://google.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/request.py", line 67, in request
    **urlopen_kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/request.py", line 80, in request_encode_url
    return self.urlopen(method, url, **urlopen_kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 108, in urlopen
    return self.urlopen(method, e.url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 108, in urlopen
    return self.urlopen(method, e.url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 104, in urlopen
    return conn.urlopen(method, url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/connectionpool.py", line 361, in urlopen
    raise MaxRetryError(self, url)
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.google.de', port=443): Max retries exceeded with url: https://www.google.de/

It is not an HTTPS error:

 >>> m.request('GET', 'http://google.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/request.py", line 67, in request
    **urlopen_kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/request.py", line 80, in request_encode_url
    return self.urlopen(method, url, **urlopen_kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 108, in urlopen
    return self.urlopen(method, e.url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 108, in urlopen
    return self.urlopen(method, e.url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/poolmanager.py", line 104, in urlopen
    return conn.urlopen(method, url, **kw)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/urllib3/connectionpool.py", line 361, in urlopen
    raise MaxRetryError(self, url)
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='www.google.de', port=80): Max retries exceeded with url: http://www.google.de/
@shazow
Copy link
Member

shazow commented Jul 18, 2012

I just tried this with the latest master and it works, please verify:

In [1]: from urllib3 import PoolManager

In [2]: http = PoolManager()

In [3]: r = http.request('GET', 'https://google.com')

In [4]: r.status
Out[4]: 200

@shazow shazow closed this as completed Jul 18, 2012
@schlamar
Copy link
Contributor Author

Ah, my comment in #85 was because of proxy issues. I have to test this at home :)

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

No branches or pull requests

2 participants