1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28:
System.Net.ServicePointManager.ServerCertificateValidationCallback += Delegierter (Gegenstandabsender, X509Certificate CERT, X509Chain Kette, SslPolicyErrors sslError) { bool validationResult = richten aus; RückholvalidationResult; }; aufreihen URL = „https:// " +ApplicationId+“. „+ Einstellungen. _defaultServer +“ /sendData "; HttpWebRequest Antrag = (HttpWebRequest) WebRequest.Create (URL); request.ContentType = „application/x-www-form-urlencoded“; Antrag. Methode = „PFOSTEN“; Anwendung (StreamWriter Verfasser = neues StreamWriter (request.GetRequestStream ())) { Verfasser. Schreiben (_json); } WebResponse Antwort = request.GetResponse (); Stromstrom = response.GetResponseStream (); Schnur json = ""; Anwendung (StreamReader Leser = neues StreamReader (Strom)) { während (! reader.EndOfStream) { json += reader.ReadLine (); } }