figuring out how to use http request