Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18216 > unrolled thread
| Started by | Roy Smith <roy@panix.com> |
|---|---|
| First post | 2011-12-30 09:01 -0800 |
| Last post | 2011-12-30 15:46 -0500 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2011-12-30 09:01 -0800 |
| Subject | Doing a HTTP DELETE operation with urllib2? |
| Message-ID | <19590178.802.1325264518483.JavaMail.geo-discussion-forums@vbdz6> |
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.
[toc] | [next] | [standalone]
| From | Douglas Landgraf <dougsland@redhat.com> |
|---|---|
| Date | 2011-12-30 15:14 -0500 |
| Message-ID | <mailman.4248.1325265439.27778.python-list@python.org> |
| In reply to | #18216 |
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
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2011-12-30 10:57 -0800 |
| Message-ID | <mailman.4251.1325271429.27778.python-list@python.org> |
| In reply to | #18218 |
Ah, cool. I didn't know you could do that. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2011-12-30 10:57 -0800 |
| Message-ID | <20419811.1501.1325271426676.JavaMail.geo-discussion-forums@vbmq3> |
| In reply to | #18218 |
Ah, cool. I didn't know you could do that. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2011-12-30 20:37 +0000 |
| Message-ID | <4efe2115$0$29966$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #18224 |
On Fri, 30 Dec 2011 10:57:06 -0800, Roy Smith wrote: > Ah, cool. I didn't know you could do that. Thanks. Who are you talking to, and what is "that"? Replies with no context are somewhat less than useful. It might have made sense in your head when you wrote the reply, but to those reading, it is rather cryptic. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2011-12-30 15:46 -0500 |
| Message-ID | <mailman.4252.1325278035.27778.python-list@python.org> |
| In reply to | #18225 |
On 12/30/2011 03:37 PM, Steven D'Aprano wrote: > On Fri, 30 Dec 2011 10:57:06 -0800, Roy Smith wrote: > >> Ah, cool. I didn't know you could do that. Thanks. > Who are you talking to, and what is "that"? > > Replies with no context are somewhat less than useful. It might have made > sense in your head when you wrote the reply, but to those reading, it is > rather cryptic. > > Actually I think he was replying to Roy Smith's message, which has a timestamp of 77 minutes later. Interesting the effects you get when some clocks are allowed to drift. -- DaveA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web