c# post request
var values = new Dictionary<string, string>
{
{ "thing1", "hello" },
{ "thing2", "world" }
};
var content = new FormUrlEncodedContent(values);
var response = await client.PostAsync("http://www.example.com/recepticle.aspx", content);
var responseString = await response.Content.ReadAsStringAsync();private static readonly HttpClient client = new HttpClient();
var responseString = await client.GetStringAsync("http://www.example.com/recepticle.aspx");
Also in C#:
- unity array of child objects
- unity check when clicked on object
- xarray: create 2d dataset
- send type as argument c#
- json serialize object capitalization config
- asp list box
- how to update modal class using dbfirst in asp.net core
- random from list c#
- how to close a form c#
- c# post request
- unity cycle children
- convert generic to type c#
- variables
- check if two timespans intersect c#
- unity html get request
- what is the or symbol in C#
- unity fall damage c#
- .net core copy file in folder to root
- populate combobox from array c#
- using mediamanager how to play mp3 files
- unity rotate vector
- C# previous method
- c# type of generic is string
- setting the parent of a transform which resides in a prefab