correct call to make an http request