WebRequest with POST-parameters in .NET Compact Framework
问题 I'm trying to do an HTTP POST REQUEST on .NET Compact Framework and I can't get it working. This is what I got: public static string DoPost(string url) { // initialize from variables string responseString = string.Empty; ASCIIEncoding encoding = new ASCIIEncoding(); //// UTF8Encoding encoding = new UTF8Encoding(); HttpWebResponse response; byte[] data = encoding.GetBytes("dummy"); StreamReader reader; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url); //do the processing