string uri = "https://vvzerlgggk.execute-api.us-east-1.amazonaws.com/dev/api/efecty/payment/a1b2c3d4c5f6"; System.Net.ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true); HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(uri); webRequest.KeepAlive = false; webRequest.Method = "GET"; string hmac = "rDQ2ExmsC88zcpbT7nLu864U0hvOVx974FFfqqzP"; webRequest.Headers.Add("x-api-keys", hmac); //webRequest.Timeout = 60 * 1000; HttpWebResponse response; try { response = (HttpWebResponse)webRequest.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); string body = reader.ReadToEnd(); } catch (WebException wex) { response = (HttpWebResponse)wex.Response; }
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls12;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)