Allow for different method sigs of post/put

* Now supports post/put methods without crashing.
* Test for post/put and call method with correct args.