string url = "http://www.myserverurl.com"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); string proxy = null; string data = "ABC"; byte[] buffer = Encoding.UTF8.GetBytes(data); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength = buffer.Length; req.Proxy = new WebProxy(proxy, true); req.CookieContainer = new CookieContainer(); Stream reqst = req.GetRequestStream(); // add form data to request stream reqst.Write(buffer, 0, buffer.Length); reqst.Flush(); reqst.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)