Minor improvements of ApiClient
Allow calls to HTTPS urls