Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18218
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dougsland@redhat.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'url:py': 0.07; 'httplib': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:github': 0.09; 'received:10.11': 0.16; 'roy': 0.16; 'url:blob': 0.16; 'cc:addr :python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cheers': 0.23; 'douglas': 0.23; "i'm": 0.26; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'subject:?': 0.31; "i've": 0.31; "i'll": 0.31; 'hi,': 0.32; 'header:User- Agent:1': 0.33; 'instead': 0.33; 'there': 0.33; 'framework': 0.34; 'received:10.3': 0.34; 'test': 0.35; 'subject:with': 0.36; 'cc:2**1': 0.36; 'some': 0.38; 'hoping': 0.38; 'received:209': 0.40; 'might': 0.40; 'header:Reply-To:1': 0.71; 'heavy': 0.71; 'reply-to:no real name:2**0': 0.72; '12:01': 0.84 |
| Date | Fri, 30 Dec 2011 15:14:56 -0500 |
| From | Douglas Landgraf <dougsland@redhat.com> |
| Organization | Red Hat |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111104 Red Hat/3.1.16-2.el6_1 Thunderbird/3.1.16 |
| MIME-Version | 1.0 |
| To | comp.lang.python@googlegroups.com |
| Subject | Re: Doing a HTTP DELETE operation with urllib2? |
| References | <19590178.802.1325264518483.JavaMail.geo-discussion-forums@vbdz6> |
| In-Reply-To | <19590178.802.1325264518483.JavaMail.geo-discussion-forums@vbdz6> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.25 |
| Cc | python-list@python.org, Roy Smith <roy@panix.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | dougsland@redhat.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4248.1325265439.27778.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1325265439 news.xs4all.nl 6844 [2001:888:2000:d::a6]:51935 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18218 |
Show key headers only | View raw
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