Adding support for auth and no auth calls. Fixed posting with HttpClient instead of http.Client