Unity2021 android版本 app无法使用 webrequest webrequest(地址是https的)
HttpWebRequest req;
if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase))
{
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
req = WebRequest.Create(url) as HttpWebRequest;
req.ProtocolVersion = System.Net.HttpVersion.Version11;
}
else
{
req = WebRequest.Create(url) as HttpWebRequest;
}