Пример #1
0
 public void Get()
 {
     try
     {
         HttpAPI.Get(uri);
     }
     catch (Exception e)
     {
         Debug.Log(e);
     }
 }
Пример #2
0
 public void PostWithCert(X509Certificate cert = null)
 {
     try
     {
         if (cert == null)
         {
             // Example Cert
             cert = new X509Certificate2(Path.Combine(Application.dataPath, "client.pfx"), "amoeba", X509KeyStorageFlags.MachineKeySet);
         }
         HttpAPI.Post(uri, postData, null, null, cert);
     }
     catch (Exception e)
     {
         Debug.LogError(e);
     }
 }
Пример #3
0
 public void Post()
 {
     HttpAPI.Post(uri, postData);
 }