This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ejfc
Recipients
Date 2001-03-08.17:59:09
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=169128

I have corrected the patch to reflect proper Basic 
Authentication:

--- /var/local/cvs/python/dist/src/Lib/urllib2.py	Thu 
Mar  1 09:46:07 2001
+++ /usr/local/lib/python2.1/urllib2.py	Thu Mar  8 17:23:31 
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 = "Basic " + 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:
History
Date User Action Args
2007-08-23 13:53:28adminlinkissue406683 messages
2007-08-23 13:53:28admincreate