Answers for "csharp send post request with webclient"

C#
1

webclient c# example post

string URI = "http://www.myurl.com/post.php";
string myParameters = "param1=value1&param2=value2&param3=value3";

using (WebClient wc = new WebClient())
{
    wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
    string HtmlResult = wc.UploadString(URI, myParameters);
}
Posted by: Guest on July-04-2020

Code answers related to "csharp send post request with webclient"

C# Answers by Framework

Browse Popular Code Answers by Language