Add support for other request methods besides GET and PUT

See http://stackoverflow.com/a/111988.