update client to use HTTPS when calling the API