Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18218
| Date | 2011-12-30 15:14 -0500 |
|---|---|
| From | Douglas Landgraf <dougsland@redhat.com> |
| Organization | Red Hat |
| Subject | Re: Doing a HTTP DELETE operation with urllib2? |
| References | <19590178.802.1325264518483.JavaMail.geo-discussion-forums@vbdz6> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4248.1325265439.27778.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Doing a HTTP DELETE operation with urllib2? Roy Smith <roy@panix.com> - 2011-12-30 09:01 -0800
Re: Doing a HTTP DELETE operation with urllib2? Douglas Landgraf <dougsland@redhat.com> - 2011-12-30 15:14 -0500
Re: Doing a HTTP DELETE operation with urllib2? Roy Smith <roy@panix.com> - 2011-12-30 10:57 -0800
Re: Doing a HTTP DELETE operation with urllib2? Roy Smith <roy@panix.com> - 2011-12-30 10:57 -0800
Re: Doing a HTTP DELETE operation with urllib2? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-30 20:37 +0000
Re: Doing a HTTP DELETE operation with urllib2? Dave Angel <d@davea.name> - 2011-12-30 15:46 -0500
csiph-web