Add support for other request methods besides GET and PUT (see http://stackoverflow.com/a/111988).