远程服务器返回错误:(503)服务器不可用。 [英] The remote server returned an error: (503) Server Unavailable.
本文介绍了远程服务器返回错误:(503)服务器不可用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
public void sendSMS(string uid, string password, string message, string no)
{
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
// request.Proxy = GlobalProxySelection.GetEmptyWebProxy();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
protected void Button1_Click(object sender, EventArgs e)
{
sendSMS("9966557790", "******", txtmsg.Text, txtno.Text);
ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);
}
我们将通过way2sms.com通过C#代码向手机发送消息来编写asp.net。我们将得到此错误(远程服务器返回错误:(503)服务器不可用。)。请重播我
we will write asp.net through C# code send message to mobile through way2sms.com . we will get This error (The remote server returned an error: (503) Server Unavailable.). Please Replay me
推荐答案
检查此错误的含义 - HTTP错误503 - 服务不可用 [ ^ ]。
还要检查发送请求的URL是否正确。如果问题仍然存在,请联系服务提供商。
Check what this error means - HTTP Error 503 - Service unavailable[^].
Also check if the URL you are sending the request to is correct. If the problem persists contact the service provider.
http://ubaid.tk/sms/sms.aspx,该网站实际上当前不可用..
http://ubaid.tk/sms/sms.aspx, that web site actually currently not available..
>
这篇关于远程服务器返回错误:(503)服务器不可用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文