New submission from Yuval Greenfield <ubershme...@gmail.com>:

When trying to use urllib to open a page from a server with NTLM authentication 
python raises urllib.error.HTTPError: HTTP Error 401: Unauthorized

A python 3 code example: http://codepad.org/axPomYHw

This was a bit confusing for me as I had to debug urllib to figure out python 
doesn't support NTLM. I'd expect python to tell me the authentication method 
isn't supported in such cases.

I didn't add a test for the attached patch as it doesn't seem test-worthy.

----------
components: Library (Lib)
files: urllib.auth.patch
keywords: patch
messages: 133248
nosy: ubershmekel
priority: normal
severity: normal
status: open
title: urllib HTTP authentication behavior with unrecognized auth method
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file21567/urllib.auth.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11799>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to