Added a wrapper around requests to authenticate and use host from config