helper for getting baseurl on http request