웹 응용 프로그램에서 SMS를 보내고 있는데, 이유는 무엇입니까? SourceAddress
을 parameter.Add("SourceAddress", "BPD.co.uk");
으로 추가하면 BPD.co.uk
은 BPDcouk
입니다.SMS 소스 주소에서 점이 사라집니다.
포인트를 표시하려면 어떻게해야합니까?
Heres는 내 C# 코드 : Heres는
public void SendSms(string MobileNumber, string SMSContent)
{
Dictionary<string, string> parameter = new Dictionary<string, string>();
parameter.Add("Action", "Send");
parameter.Add("DestinationAddress", MobileNumber);
parameter.Add("SourceAddress", "BPD.co.uk");
parameter.Add("Body", SMSContent);
parameter.Add("ValidityPeriod", "86400");
string resultcode = api_connect("nsp04456", "pword", parameter);
}
내가 추측
private string api_connect(string Username, string Password, Dictionary<string, string> ParametersDict)
{
string url = "http://api.sms.co.uk/api/api.php";
string poststring = "Username=" + Username + "&";
poststring = poststring + "Password=" + Password;
// Turn the parameter dictionary object into the variables
foreach (KeyValuePair<string, string> item in ParametersDict)
{
poststring = poststring + "&" + item.Key + "=" + item.Value;
}
MSXML2.ServerXMLHTTP60 xmlHttp = new MSXML2.ServerXMLHTTP60();// Server.CreateObject("MSXML2.ServerXMLHTTP.4.0");
xmlHttp.open("POST", url, false);
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttp.send(poststring);
return xmlHttp.responseText;
}
"BPD.co.uk"가 사전에 추가됩니다. 그 후 어떻게됩니까? 어떤 "api_connect"및 특정 API를 귀하의 호출을 –
api fucntion 추가 된 –