Implement http request of api server