wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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: 288

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: 288

thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web browser
 
Similar Threads
API contents problem
Need help with this code
Jframe , on resize throws exception
file reading in applet
Why my RMI connection throw exceptions?