fellix fu
2
Q:

c# make http request

using System.Net.Http;
private static readonly HttpClient client = new HttpClient();
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();
2
private static readonly HttpClient client = new HttpClient();

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

New to Communities?

Join the community