Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

browser less surfing  RSS feed

 
Sahil Sharma
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have a requirement where in i have to navigate through a website using a java program and read the conent from a table displayed on the third or fourth jsp page.

I am able to connect a website and login as well using HttpURLConnection. but not sure how to traverse to the 2nd or 3rd page.

Is there any api available for this?

thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there is. Both HtmlUnit and jWebUnit (which uses HtmlUNit underneath) make it real easy to browse web sites programmatically.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!