Answers for "c# httpclient post json read response"

C#
0

c# .net 3.5 post json httpclient

System.Net.WebClient client = new System.Net.WebClient();
 client.Headers.Add("content-type", "application/json");//set your header here, you can add multiple headers
 string s = Encoding.ASCII.GetString(client.UploadData("http://localhost:1111/Service.svc/SignIn", "POST", Encoding.Default.GetBytes("{"EmailId": "[email protected]","Password": "pass#123"}")));
Posted by: Guest on February-10-2021

Code answers related to "c# httpclient post json read response"

C# Answers by Framework

Browse Popular Code Answers by Language