Ejemplo n.º 1
0
 public void Get()
 {
     try
     {
         HttpAPI.Get(uri);
     }
     catch (Exception e)
     {
         Debug.Log(e);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 public void Post()
 {
     HttpAPI.Post(uri, postData);
 }