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 b.a.scott
Recipients b.a.scott, dieresys, mbeachy, orsenthil, ronaldoussoren, tsujikawa
Date 2011-02-21.10:41:25
SpamBayes Score 5.64027e-12
Marked as misclassified No
Message-id <1298284887.86.0.612393477886.issue7291@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch builds on Mike's work.

The core of the problem is that the Request object
did not know what was going on. This means that it
was not possible for get_authorization() to work
for proxy-auth and www-auth.

I change Request to know which of the four types of
connection it represents. There are new methods on
Request that return the right information based on
the connection type.

To understand how to make this work I needed to
instrument the code. There is now a set_debuglevel
on the OpenerDirector object that turns on debug in
all the handlers and the director. I have added
more debug messages to help understand this code.

This code now passes the 72 test cases I run. I'll
attach the code I used to test as a follow up to this.
History
Date User Action Args
2011-02-21 10:41:29b.a.scottsetrecipients: + b.a.scott, ronaldoussoren, orsenthil, mbeachy, dieresys, tsujikawa
2011-02-21 10:41:27b.a.scottsetmessageid: <1298284887.86.0.612393477886.issue7291@psf.upfronthosting.co.za>
2011-02-21 10:41:27b.a.scottlinkissue7291 messages
2011-02-21 10:41:27b.a.scottcreate