(original) (raw)
On Mon, Nov 4, 2013 at 6:11 AM, Matěj Cepl <mcepl@redhat.com> wrote:
I am not sure how widespread is this breaking of RFC, but it seems to me
that quite a lot (e.g., http://stackoverflow.com/a/9698319/164233 which
just en passant expects urllib2 authentication stuff to be useless), and
the question is whether it shouldn't be documented somehow and/or
urllib2.HTTPBasicAuthHandler shouldn't be modified to try add
Authenticate header first.
Any suggestions?
Please file a bug report at bugs.python.org stating this. urllib2 tries to follow the RFC as much as possible, but ofcourse consider's de-facto standards and adopts to it. This can be documented for 2.x and can be 'fixed in 3.4.
HTH,
Senthil