Fix issue #4.

put/post use body.
get/delete use params.
Merge pull request #5 from z5h/master

Fix issue #4.