initial implementation for http request