Horje
c# post get request Code Example
c# post get request
using System.Net.Http;

HttpClient client = new HttpClient();
/// POST ///

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();

/// GET ///

var responseString = await client.GetStringAsync("http://www.example.com/recepticle.aspx");




Csharp

Related
radians to degree c# Code Example radians to degree c# Code Example
C# previous method Code Example C# previous method Code Example
c# random color Code Example c# random color Code Example
get enum int by name Code Example get enum int by name Code Example
how to access gameobject name Code Example how to access gameobject name Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8