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.

Title: HTTP basic authentication problem
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: c_marinas, loewis
Priority: normal Keywords: patch

Created on 2004-07-20 15:46 by c_marinas, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
patch-urllib2 c_marinas, 2004-07-20 15:46 patch
Messages (4)
msg46406 - (view) Author: Catalin Marinas (c_marinas) Date: 2004-07-20 15:46
The regular expression matching in the
function in the urllib2 module doesn't work if the
authorization string returned by the server contains
one or more words in front of 'Basic realm="..."'. The
patch changes the rx.match() to
msg46407 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-07-26 12:19
Logged In: YES 

Can you please give an example of a header that is not
correctly detected?
msg46408 - (view) Author: Catalin Marinas (c_marinas) Date: 2004-07-27 08:37
Logged In: YES 

I was trying to access a MS Exchange web mail account
through their Outlook Web Access (WebDAV) interface but
could not authenticate. The authorisation header returned by
the the server is: 'Negotiate, NTLM, Basic realm="..."'.

I don't know wheather the MS server complies with any
standard, but the patch solved my problem.
msg46409 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-03 13:01
Logged In: YES 

Thanks for the patch. Applied as 1.73
NEWS 1.1063
NEWS 1.831.4.135
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40605
2004-07-20 15:46:19c_marinascreate