Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

postasync json C#

            using (var client = new HttpClient())
            {
                using (var content = new StringContent(json, Encoding.UTF8, "application/json"))
                {
                    var result = client.PostAsync(url, content).Result; // use await instead of result                  	
                    return;
                }
            }
 
PREVIOUS NEXT
Tagged: #postasync #json
ADD COMMENT
Topic
Name
4+9 =