Doing a HTTP DELETE operation with urllib2?
Douglas Landgraf
dougsland at redhat.com
Fri Dec 30 15:14:56 EST 2011
Hi,
On 12/30/2011 12:01 PM, Roy Smith wrote:
> 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.
You might want to look:
https://github.com/dougsland/rhev3-restapi-scripts/blob/master/sample-delete.py
--
Cheers
Douglas
More information about the Python-list
mailing list