This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Web browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Web browser" Watch "Web browser" New topic
Author

Web browser

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

hi i need the HTML source (view Source on right click) if i give the link of the page.
how can i do that in java code.

is thier any API or Method to read the body of the HTTP response


-Chiru
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Apache HttpComponents (previously in Apache Commons) contains code to talk HTTP, which includes the ability to read the response of a HTTP request.
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

thank you
 
GeeCON Prague 2014
 
subject: Web browser