I use a website provided by the mobile phone company to send SMS messages, and charge it to my mobile phone, good to send bulk messages to friends and family.
I thought about using an automated method to send SMS to make it easier, I asked the mobile phone company if they provide something like a WebAPI or SMPP, but they don't.
So... I thought about using their form, and here come the greate HttpWebRequest and HttpWebResponse.
First I opened the login page... opened the page source, search for all form fields, login id, password and hidden fields.
Then I opened the Send SMS page... and did the same.
Now writing a test page:
{
data +=
request.CookieContainer = cookieContainer;
request.Method =
request.ContentLength = data.Length;
request.ContentType =
writer.Write(data);
writer.Close();
request.GetResponse();
}
uri =
data =
response.Close();
Label1.Text =
It is working :D as expected.
Remember Me
a@href@title, strike
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.