Created
January 17, 2017 07:02
-
-
Save kehr/0c282b14bfa35155deff34d3d27f8307 to your computer and use it in GitHub Desktop.
urllib2 send DELETE, PUT request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
request = urllib2.Request(uri, data=data) | |
request.get_method = lambda: 'PUT' # or 'DELETE' | |
response = urllib2.urlopen(request) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment