In my Django app I need to send an HTTP PUT request to a url. What is the proper syntax for that?
Asked
Active
Viewed 890 times
0
-
possible duplicate of [Is there any way to do HTTP PUT in python](http://stackoverflow.com/questions/111945/is-there-any-way-to-do-http-put-in-python) – jfs Jan 23 '15 at 18:58
1 Answers
0
Found the answer: req = urllib2.Request(url=your_url, data=your_data) req.get_method = lambda: 'PUT'

Eugene Goldberg
- 14,286
- 20
- 94
- 167