Reputation: 6197
I am trying to interface multiple accounts into a single one. I mean, consider you sell your own stuff at Sites A, B, C, D. I am trying to develop an app, such that the user has to enter his credentials in the settings screen, and from then on, the app automatically logs into each of the site, and parse the HTML to get the balance. The issue here is, I don't find any API for any of the sites. So Can i open the source of the Login page, and use it to find the HTTP Post URL and the username and password field name tags and use it as normal post? Will it login? Have you ever tried such thing.
You help would be greatly appreciated.
Thanks, Nithin
Upvotes: 0
Views: 11719
Reputation: 17234
Use Firebug in Firefox or (Tools->Developer Tools in CHrome) to find out what is sent as POST parameters & then simulate the same in java.
I wrote a simple script to send SMS using a website and wrote on howto simulate logins. You can have a look at it here. It uses python but gives an idea of how is it done.
Upvotes: 6