So as I stated in the title the post request doesnt work when using https. Im including code down below and it works with http
Btw this is error code: Error getting response stream (Write: The authentication or decryption has failed.): SendFailureCode:protected void sendData(string endpoint, object dictionary) { var timeout = 1000f; var headers = new Dictionary<string, string> { { "Authorization", APIKey } }; string json = JsonConvert.SerializeObject(dictionary, Formatting.Indented); webrequest.EnqueuePost(getEndpoint(endpoint), "data=" + json, (code, response) => GetCallback(code, response), this, headers, timeout); }
Can't post data to server when using https
Discussion in 'Rust Development' started by as esu grejtis, Apr 11, 2017.