Creating http request and consuming data