An http request wrapper