Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java Browser component  RSS feed

 
Suresh Appagundi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is there any java browser component to fetch the contents of any url (for example http://javaranch.com)

I dont want any UI to show like browser, but i just want to get the final content (html text) and final url.

very urgent.

thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.net.HttpURLConnection .

This is not advanced -- not even close. Moving to Sockets and Internet Protocols for followup.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're thinking of submitting forms as well, or working with the page you got in a DOM-like fashion, check out the HttpUnit library on SourceForge. It implements a not-so-simple browser as a GUI-less library.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There might also be some Swing components that could help, if you want to create a GUI front end. I'm new to sockets programming, so I apologize that I cannot give anything more specific.

Layne
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!