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