wood burning stoves*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Web browser