Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use ValueFirst HTTP API in asp.net BY Calling below url .

HTTP API URL- http://myvaluefirst.com/smpp/sendsms?username=xxxx&password=xxxx&to=91997166xxxx&from=VFirst&udh=0&text=test&dlr-mask=19&dlr-url&category=bulk

The below code is throwing error (guid=92de113e-21fd-4a22-aedd-faeaf00e00a5&errorcode=3&seqno=9180898765)

C#
string URL = "http://myvaluefirst.com/smpp/sendsms?username=username&pwd=ytpvtlt1&to=9180898765&from=VFirst&udh=0&text=test&dlr-mask=19&dlr-url=test.aspx&category=bulk";

WebRequest myWebRequest = WebRequest.Create(URL);
WebResponse myWebResponse = myWebRequest.GetResponse();
Stream ReceiveStream = myWebResponse.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
StreamReader readStream = new StreamReader(ReceiveStream, encode);
string strResponse = readStream.ReadToEnd();
Response.Write("Response from site");
Posted
Updated 5-Nov-12 8:14am
v2
Comments
Hemil Gandhi 30-Aug-20 13:38pm    
hey hi, have you resolved your problem, I am looking for same kind of solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900