request.UserAgent = useragent;
request.IgnoreProtocolErrors = true;
request.SslCertificateValidatorCallback += (sender, certificate, chain, sslPolicyErrors) => true;
var result = request.Get("https://sscasino.online/");
but i get error
Failed to establish SSL connection with the HTTP server
i get the same the error for WebRequest
WebRequest req = WebRequest.Create(Url);
WebResponse resp = req.GetResponse();
Stream stream = resp.GetResponseStream();
StreamReader sr = new StreamReader(stream);
string Out = sr.ReadToEnd();
sr.Close();
but solution for WebRequest is a add line
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
what is the solution for xnet ?