kennethreitz/requests — Issue #293: Proxy authentication broken with 0.76 -> 0.83 upgrade.
Author: steinster
Created: 2011-11-28 17:25:20+00:00
State: open

Proxy authentication was possible in 0.76 using a string like "user:password@ip:port". In 0.83 I am getting the following error:

Traceback (most recent call last):
File "req.py", line 10, in
print get('http://ipcheckit.com', proxies=p).content
File "build\bdist.win32\egg\requests\api.py", line 80, in get
File "build\bdist.win32\egg\requests\api.py", line 67, in request
File "build\bdist.win32\egg\requests\sessions.py", line 191, in request
File "build\bdist.win32\egg\requests\models.py", line 409, in send
File "build\bdist.win32\egg\requests\packages\urllib3\poolmanager.py", line 127, in proxy_from_url
File "build\bdist.win32\egg\requests\packages\urllib3\connectionpool.py", line 521, in connection_from_url
File "build\bdist.win32\egg\requests\packages\urllib3\connectionpool.py", line 497, in get_host
ValueError: invalid literal for int() with base 10: 'hramih@184.154.139.226:60099'