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 Alex.Leon
Recipients Alex.Leon
Date 2011-07-12.13:48:18
SpamBayes Score 0.0035003389
Marked as misclassified No
Message-id <1310478499.65.0.178767259424.issue12541@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like some servers using basic authentication don't include quotes around the realm (example https://api.connect2field.com) as required by rfc 2617. urllib wont handle these requests and silently fails, but a simple change to the regex in AbstractBasicAuthHandler from
 
'realm=(["\'])(.*?)\\2', re.I)
to
'realm=(["\']?)(["\']*)\\2', re.I)

would make authentication more flexible.
History
Date User Action Args
2011-07-12 13:48:19Alex.Leonsetrecipients: + Alex.Leon
2011-07-12 13:48:19Alex.Leonsetmessageid: <1310478499.65.0.178767259424.issue12541@psf.upfronthosting.co.za>
2011-07-12 13:48:19Alex.Leonlinkissue12541 messages
2011-07-12 13:48:18Alex.Leoncreate