Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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": "admin@admin.com","Password": "pass#123"}")));
Comment

PREVIOUS NEXT
Code Example
Csharp :: test how catch exception c# 
Csharp :: group by ef core 
Csharp :: dynamic group by expression C# 
Csharp :: c# close form 
Csharp :: unity reference textmeshpro 
Csharp :: c# datetime blank 
Csharp :: c# #region #endregion 
Csharp :: get selected item datagrid wpf 
Csharp :: cast char[] to string c# 
Csharp :: how to compare datetime in c# 
Csharp :: c# loop through dictionary 
Csharp :: how to make pc bsod C# 
Csharp :: custom click event wpf button 
Csharp :: c# add 2 arrays 
Csharp :: TimeZone in asp.net core 
Csharp :: vb.net remove last comma from string 
Csharp :: primitive types c# 
Csharp :: random string generator c# 
Csharp :: c# form set auto scale 
Csharp :: how to generate a random number in c# 
Csharp :: ActionExecutingContext result response return 
Csharp :: shut game unity 
Csharp :: using in c# 
Csharp :: c# loop string 
Csharp :: how to get mouse position c# 
Csharp :: how to use double in c# 
Csharp :: count the number of notes in a given amount c# 
Csharp :: select distinct linq mvc 
Csharp :: c# divide two integers get float 
Csharp :: run in new thread C# 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =