I here want to call another website url, login into it, and use one of its function using my asp.net project. I’m working on a project in asp.net where my web based program will send sms to mobile phones. Since I don’t want to subscribe to any gateways or similar, I found this website:
http://sms80.com
Now what I want to do is, from my asp.net page I need to access this website, login and use its service but all this must be done hidden programatically in my asp.net page.
I somehow inspected that websites element such as login name textbox and password textbox. I am not trying to hacking but I just need know the process I do in that website( I login using my account, then write my message and write the mobile num and send) programaticallyin my asp.net.
I did some research and found out that I can send or pass values in url straight such as:
your_url.aspx?your_url_variable=" + @variable_from_form
but it doesn’t seem work. Is it any other way to do it?
If the other website doesn’t have an API loging into it programmatically is not a simple process.
It requires a lot of exploratory work and analysis of how the website you’re trying to login works. The process consists of first determining what is being sent in the request/response communication post data with a tool such as Fiddler.
Then, you need to construct a series of GETs and POSTs using either HttpWebRequest/HttpWebResponse classes or WebClient class so you can mimic the way the browser does it.
An example would be: