Note that that if your IEM is using untrusted certificates you must add --insecure
flag, cURL would fail due to SSL certificate problems with a message like:
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.