Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18216

Doing a HTTP DELETE operation with urllib2?

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Doing a HTTP DELETE operation with urllib2?
Date 2011-12-30 09:01 -0800
Organization http://groups.google.com
Message-ID <19590178.802.1325264518483.JavaMail.geo-discussion-forums@vbdz6> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


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