日期:2014-05-17 浏览次数:20603 次
StringBuilder sb = new StringBuilder();
sb.Append("1");
sb.Append("2");
string vpcURL = "https://b.aspx";
System.Net.WebClient webClient = new System.Net.WebClient();
webClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] response = webClient.UploadData(vpcURL, "POST", System.Text.Encoding.ASCII.GetBytes(sb.ToString()));
string responseData = System.Text.Encoding.ASCII.GetString(response, 0, response.Length);
string result = GetContent(responseData, "vpc_TxnResponseCode=", "&", 2);