Use https API rather than removed http api.