Doing a HTTP DELETE operation with urllib2?

Roy Smith roy at panix.com
Fri Dec 30 12:01:58 EST 2011


Is there some way to make urllib2.urlopen() perform a DELETE instead of a GET or POST?

 I'm hoping I don't have to dip way down into httplib.  I've got an application test framework built on top of urllib2.  It makes heavy use of HTTPCookieProcessor.  If I need to use the httplib calls directly, I'll have to re-implement a lot of that machinery.



More information about the Python-list mailing list