Message107009
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. |
|
Date |
User |
Action |
Args |
2010-06-04 07:10:28 | Jurjen | set | recipients:
+ Jurjen |
2010-06-04 07:10:28 | Jurjen | set | messageid: <1275635428.44.0.0623896045557.issue8894@psf.upfronthosting.co.za> |
2010-06-04 07:10:26 | Jurjen | link | issue8894 messages |
2010-06-04 07:10:25 | Jurjen | create | |
|