[Python-Dev] BUG (urllib2) Authentication request header is broken on long usernames and passwords

John J Lee jjl at pobox.com
Tue Oct 10 02:14:51 CEST 2006

On Mon, 9 Oct 2006, Scott Dial wrote:
> In retrospect, perhaps "{de|en}codestring" was a poor name choice.
> urllib2 should be calling b64encode directly.
> I have submitted a patch to the tracker: [ 1574068 ] urllib2 - Fix line
> breaks in authorization headers.

urllib should also be fixed in the same way (assuming your fix is 
correct), since urllib also uses base64.{de,en}codestring().


More information about the Python-Dev mailing list