How To Fill Out Form Data On A Website
I am looking to develop an app that will take login details from the user, go to a website, login, return values on the web page and then display them to the user on the phone. Doe
Solution 1:
Ian, You can try using http-client (http://hc.apache.org/httpclient-3.x/) lib from apache. It lets to pro grammatically access a website (from a Java code). You will need to do the following things
- Use the http-client lib to POST the data to the web site.
- Receive the html response.
- Use some html parser or xpath to retrieve the values from the response html.
Solution 2:
You would need a script which accesses the webpage and enters the data, but in my opinion this is illegal. Because you are accessing a secured area and are able to look into sensitive data. Also accessing the page via a script is "botting" - most pages have safety precautions to prevent the execution of scripts, because most of them are harmful. In my opinion there is no legal and easy solution to this.
Post a Comment for "How To Fill Out Form Data On A Website"