Marian Pavel
Marian Pavel

Reputation: 2876

Access php form from a web server in java and get results

There is a website with a form (form.php) where I fill some information and I get a result on another page (search.php) P.S. action of the form is POST.

Is it possible to write an application in Java to pass values to search.php on that web server and then parse the HTML file with the result ?

Upvotes: 1

Views: 31

Answers (1)

npinti
npinti

Reputation: 52185

You can write a small application which makes use of Selenium.

Selenium is a web testing automation framework which allows applications (it includes a Java Wrapper) to interact with web sites.

You can then make use of Selenium to parse the result of the POST.

Upvotes: 1

Related Questions