日期:2014-05-20 浏览次数:20707 次
WebClient WClient = new WebClient();
System.Collections.Specialized.NameValueCollection VarPost = new System.Collections.Specialized.NameValueCollection();
WClient.Encoding = System.Text.Encoding.GetEncoding("GB2312");
VarPost.Add("test", "4");
VarPost.Add("webname", "我的网站");//此处乱码
byte[] RemoteByte = WClient.UploadValues(string.Format("http://{0}/install/index.php", SModel.SiteUrl), "POST", VarPost);