Using urllib2, can we use a method other than "GET" or "POST" (when data is provided)?
I dug into the library, and it seems that the decision to use GET or POST is "convenient" due to whether the data is provided in the request.
For example, I want to interact with the CouchDB database, which requires methods such as "DEL", "PUT". I want urllib2 handlers, but I need to make my own method calls.
I PREVENT NOT TO import third-party modules into my project, e.g. python couchDB. So, please, do not go down this road. My implementation should use the modules that come with python 2.6. (My design specification requires the use of the PortablePython barebone distribution). I would write my own interface using httplib before importing external modules.
Thank you very much for your help
source
share