The following curl works:
curl -vx proxy.example.com:8010 -U user:pass http://example.com
And returns valid content with response code of 200.
However, the same credentials used via python requests library yields a 407 status code (authentication error). Upon looking at the logs, it looks like the user is never passed through (is undefined).
url = "http://example.com"
proxies = {'http': 'http://proxy.example.com:8010'}
auth = HTTPProxyAuth("user", "pass")
resp = requests.get(url, proxies=proxies, auth=auth)
I am using requests library 2.3.0.