日期:2014-05-17 浏览次数:20450 次
string url="https://www.***.com/pay";
string postdata="data1=1&data2=2&data3=3"
System.Net.WebClient webClient = new System.Net.WebClient();
webClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] response = webClient.UploadData(url, "POST", Encoding.ASCII.GetBytes(postdata));