How to programmatically access web page in java

后端 未结 5 1473
无人及你
无人及你 2021-01-30 18:17

There is a web page from which I want to retrieve a certain string. In order to do so, I need to login, click some buttons, fill a text box, click another button - and then the

5条回答
  •  独厮守ぢ
    2021-01-30 19:07

    Yes:

    • java.net.URL#openConnection() will allow you to make http requests and get the http responses

    • Apache HttpComponents is a library that makes it easier to work with HTTP.

提交回复
热议问题