设置https验证方式

 if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase))

原文地址:https://www.cnblogs.com/DTWolf/p/4597746.html