[New-bugs-announce] [issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

Chris Boyle report at bugs.python.org
Wed Dec 17 15:14:19 CET 2008

New submission from Chris Boyle <chris at boyle.name>:

The attached script, when edited to fill in valid LiveJournal
credentials (or InsaneJournal, if you change the URL and user list)
fails for me in a very odd way. It fetches the first two URLs quite
happily, and returns a 401 on the third after querying my password
manager about 6 times (always the third, no matter what the user list
is). Rebuilding the opener each time around the loop doesn't fix it.
Recreating the HTTPDigestAuthHandler (and then rebuilding the opener)
*does* fix it. Seems like any given instance of HTTPDigestAuthHandler
fails on the third hostname.

Python package version 2.5.1-5ubuntu5.2. Haven't tried it on newer versions.

components: Extension Modules
files: urllib2-test.txt
messages: 77965
nosy: cmb
severity: normal
status: open
title: urllib2.HTTPDigestAuthHandler fails on third hostname?
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file12377/urllib2-test.txt

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list