I have only HTTP API for my SMS gateway for which I create an ASP.NET application to send SMS using ASP.NET page. The below string url is the HTTP API. Now, how to post this url in ASP.NET page to send SMS.
protected void Page_Load(object sender, EventArgs e)
{
string userk = "***********";
string passk = "***********";
string senderk = "someid";
string phonek = "00000000000";
string messagek = "This is a test API";
string priorityk = "ndnd";
string typek = "normal";
string url = "http://indiansms.smsmaker.in/api/sendmsg.php?user=" + userk + "&pass=" + passk + "&sender=" + senderk + "&phone=" + phonek + "&text=" + messagek + "&priority=" + priorityk + "&stype=" + typek;
}
Have you tried using either
WebRequestorWebClient? The fact that you’re doing this from within an ASP.NET page is mostly irrelevant…Note that you should escape URI parameters – otherwise you’ll run into trouble with values such as a message of “hello & goodbye”.