--- /var/local/cvs/python/dist/src/Lib/urllib2.py Thu Mar 1 09:46:07 2001 +++ /usr/local/lib/python2.1/urllib2.py Wed Mar 7 13:09:49 2001 @@ -477,8 +477,8 @@ host, XXX = splithost(r_type) if '@' in host: user_pass, host = host.split('@', 1) - user_pass = base64.encode_string(unquote(user_passw)).strip() - req.addheader('Proxy-Authorization', user_pass) + user_pass = base64.encodestring(unquote(user_pass)).strip() + req.add_header('Proxy-Authorization', user_pass) host = unquote(host) req.set_proxy(host, type) if orig_type == type: