//设置发送参数
string sendParam = @"action=send&userid=2015&account=BRZH&password=151709&mobile=15212221391&content=您收到的验证码为:" + code + "【博瑞装潢】&sendTime=&extno=";
//发送短信及获取返回参数
string serviceAddress = "http://115.29.242.32:8888/sms.aspx";
System.Net.WebClient wCient = new System.Net.WebClient();
wCient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] postData = Encoding.ASCII.GetBytes(sendParam);
byte[] responseData = wCient.UploadData(serviceAddress, "POST", postData);
string returnStr = Encoding.UTF8.GetString(responseData);//返回接受的数据
context.Response.Write(returnStr);
$.ajax({
type: "Post",
url: "http://115.29.242.32:8888/sms.aspx",
dataType:"jsonp",
data: param,
success: function (data) {
alert(data);
}
});