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.

classification
Title: fixes urllib2 digest to allow arbitrary methods
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: jlgijsbers, rrttjj
Priority: normal Keywords: patch

Created on 2005-01-03 23:46 by rrttjj, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
method-digest.patch rrttjj, 2005-01-03 23:47 urllib2 patch to use get_method in digest handler
Messages (2)
msg47463 - (view) Author: John Reese (rrttjj) Date: 2005-01-03 23:46
urllib2.AbstractDigestAuthHandler.get_authorization
always forced the method to be either 'GET' or 'HEAD'
when computing the digest.  This meant that digest auth
for any other method would fail automatically; for
example, DELETE or PUT, for any HTTP servers that
support them, or DAV verbs like PROPFIND.  This single
line change just calls Request.get_method instead of
hardcoding the defaulting logic.

Request.get_method still forces the method to be either
GET or HEAD, but a determined caller can override
Request if they need to use a different method.
msg47464 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2005-01-09 05:54
Logged In: YES 
user_id=469548

A very determined caller indeed. I've checked in the patch
on maint24 and HEAD. Less duplication and more flexibility
never hurt anyone, right?
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41393
2005-01-03 23:46:18rrttjjcreate