|
- public static string SendMsg(string fxPhone, string fxPassword, string toPhone, string msg)
- {
- try
- {
- string url = "u=" + fxPhone + "&";
- url = url + "p=";
- url = url + fxPassword + "&";
- url = url + "to=";
- url = url + toPhone + "&";
- url = url + "m=" + msg;
- string formUrl = "http://quanapi.sinaapp.com/fetion.php";
- string formData = url; //提交的参数
- //注意提交的编码 这边是需要改变的 这边默认的是Default:系统当前编码
- byte[] postData = Encoding.UTF8.GetBytes(formData);
- // 设置提交的相关参数
- HttpWebRequest request = WebRequest.Create(formUrl) as HttpWebRequest;
- Encoding myEncoding
复制代码 来源:https://blog.csdn.net/y1535623813/article/details/82627730 免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |
|