Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

web client ignore ssl error

ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, errors) => true;

ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; };

// 255 characters - lots of code!
ServicePointManager.ServerCertificateValidationCallback =
    new RemoteCertificateValidationCallback(
        delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
        {
            return true;
        });
Comment

PREVIOUS NEXT
Code Example
Csharp :: stop playing audiosource 
Csharp :: how to round to nearest number in array c# 
Csharp :: c# loop through queue 
Csharp :: c# lambda group by multiple columns 
Csharp :: sort array dotnet 
Csharp :: unity how to make gamemanager instance 
Csharp :: c# if statement no braces 
Csharp :: how to access resources in c# 
Csharp :: unity hide mouse first person 
Csharp :: remove substring from string c# 
Csharp :: c# guid from string 
Csharp :: C# how to know if number is even or odd 
Csharp :: write last line txt file c# 
Csharp :: c# winforms datagridview bind to list 
Csharp :: c# in equivalent 
Csharp :: unity normalize movement 
Csharp :: C# Async Function simple 
Csharp :: c# external execute batch 
Csharp :: c# subtract 24 hours form datetime 
Csharp :: how to display a form when a button click c# windows form 
Csharp :: install active directory windows server 2019 powershell 
Csharp :: c# sc create service 
Csharp :: datatable select c# 
Csharp :: static property in c# 
Csharp :: overridable method C# 
Csharp :: void on TriggerCollisionEnter2D 
Csharp :: how to make diagonal movement not double the speed of the player in unity 
Csharp :: C# print all properties of an object including children objects 
Csharp :: insert button in c# 
Csharp :: asp.net session empty cehck 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =