refactored http request
Merge pull request #31 from rookian1337/master

Refactored client http request method