global http request function