Is there a way to make a request using the PATCH HTTP method in Python?
PATCH
I tried using httplib, but it doesn\'t accept PATCH as method param.
Seems to work in 2.7.1 as well.
>>> import urllib2 >>> request = urllib2.Request('http://google.com') >>> request.get_method = lambda: 'PATCH' >>> resp = urllib2.urlopen(request) Traceback (most recent call last): ... urllib2.HTTPError: HTTP Error 405: Method Not Allowed