Hi. Thank you for your question and reaching out.
You must start by include this:
// using System.Net;
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
// Use SecurityProtocolType.Ssl3 if needed for compatibility reasons
--------------------------------------------------------------------------------------------------------------------------------------------------
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.