make a http request to get data