Andy Reitz added the comment:
Sure, but the question is who should do the encoding -- the user, or python? I
think it would be better for python to read the password from the environment
variable, and encode it before using it. I think this is what users expect
Andy Reitz added the comment:
The proxy credentials are supplied by our sysadmin. My understanding is that
the http_proxy env variable doesn't require URI encoding. In addition, the same
credentials work fine with curl.
--
___
Python tracker rep
New submission from Andy Reitz:
On Python 2.7.9, if I set an https_proxy environment variable, where the
password contains a '/' character, urllib2 fails. Given this test code:
import os, urllib
os.environ['http_proxy'] = http://someuser:a/b@10.11.12.13:1234;
f = urllib.urlopen('http
Andy Reitz added the comment:
Sorry, went a bit too quickly -- here is the sample code that I meant to use:
import os, urllib2
os.environ['http_proxy'] = http://someuser:a/b@10.11.12.13:1234;
f = urllib2.urlopen('http://www.python.org')
data = f.read()
print data
And the stack trace