Refactor suggested by @dcu

* Use fancy urls and just params for post_request and get_request