Answers for "HttpWebRequest C# example"

C#
1

HttpWebRequest C# example

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();
Posted by: Guest on May-05-2022

C# Answers by Framework

Browse Popular Code Answers by Language