[issue34038] urllib2.urlopen fails if http_proxy(s) is set to a sock5 proxy

2019-05-04 Thread Daniel Wallace
Daniel Wallace added the comment: I think this is caused by the fact that socks5 proxies are not supported? $ cat ~/issue34038.py from urllib.request import urlopen, HTTPError url = 'http://icanhazip.com' u = urlopen(url) $./python.exe ~/issue34038.py Traceback (most recent call last): Fil

[issue34038] urllib2.urlopen fails if http_proxy(s) is set to a sock5 proxy

2018-07-03 Thread T L
New submission from T L : Changing the urlopen call to a curl commnand invoke works. $ export http_proxy=socks5://127.0.0.1: https_proxy=socks5://127.0.0.1: # this will raise an exception with string representation is a blank string # at least for url: https://s3.amazonaws.com/mozilla