public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
System.Net.WebClient client = new System.Net.WebClient();
client.Headers.Add("Accept_Language", "zh-cn");
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
var name = new System.Collections.Specialized.NameValueCollection();
name.Add("action", "send");//固定
name.Add("userid", "");//公司id
name.Add("account", "******");//接口账号
name.Add("password", "****");//接口密码
name.Add("mobile", "***");//接收短信的手机
name.Add("content", "12345【公司名称】");
name.Add("sendTime", "");//发送时间
name.Add("extno", "");//扩展码
byte[] buffer = client.UploadValues("http://dx.ipyy.net/smsJson.aspx", "post", name);
string str = System.Text.Encoding.UTF8.GetString(buffer);
context.Response.Write(str);
}