// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections.Specialized; using System.IO; using System.Net; using System.Text; namespace E { public class Program { public static void Main(string[] args) { WebClient wc = new WebClient(); NameValueCollection nvc = new NameValueCollection(); nvc.Add("f1", "v1"); nvc.Add("f2", "v2"); byte[] res = wc.UploadValues("http://arne/htbin/tell2", nvc); Console.WriteLine(Encoding.UTF8.GetString(res)); } } }