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 Jurjen
Recipients Jurjen
Date 2010-06-04.07:10:24
SpamBayes Score 0.10398978
Marked as misclassified No
Message-id <1275635428.44.0.0623896045557.issue8894@psf.upfronthosting.co.za>
In-reply-to
Content
If you use an authentication manager from urllib2, it will submit user code and password if authentication fails.
However, if the password is wrong, the authentication manager will happily try again, again with the same password.
A simple way to circumvent this is attached: it modifies the password manager's behaviour to submit each password only once.
One problem I see is in cases where a program needs to log in multiple times in the same site: I propose an extra call to the password manager to reset the "visited" flag.

More details and sample code are in the file.
History
Date User Action Args
2010-06-04 07:10:28Jurjensetrecipients: + Jurjen
2010-06-04 07:10:28Jurjensetmessageid: <1275635428.44.0.0623896045557.issue8894@psf.upfronthosting.co.za>
2010-06-04 07:10:26Jurjenlinkissue8894 messages
2010-06-04 07:10:25Jurjencreate