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 jamal
Recipients jamal
Date 2009-07-09.20:26:49
SpamBayes Score 3.3899203e-05
Marked as misclassified No
Message-id <1247171212.16.0.153578290973.issue6452@psf.upfronthosting.co.za>
In-reply-to
Content
While testing this bug report in Gwibber
https://bugs.launchpad.net/gwibber/+bug/397297 I found that using
urllib2.Request() with a long authorization would cause it to error and
not authenticate. I'm not sure if it is because the header wasn't being
passed or any other issue.

The header would fail when the value part of the authorization string
was 89 characters.

I was able to resolve the issue by using urllib2.HTTPBasicAuthHandler()
and urllib2.install_opener() to install it, instead of passing the
Authorization header directly to urllib2.Request().

Please let me know if I can provide more information to test the issue.
History
Date User Action Args
2009-07-09 20:26:52jamalsetrecipients: + jamal
2009-07-09 20:26:52jamalsetmessageid: <1247171212.16.0.153578290973.issue6452@psf.upfronthosting.co.za>
2009-07-09 20:26:50jamallinkissue6452 messages
2009-07-09 20:26:50jamalcreate