How do I convert a web page to a String?
Author: Deron Eriksson
Description: This Java tutorial describes how to read a URL and convert it to a String.
Tutorial created using:
Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1
(Continued from page 1) If I execute the above code, I obtain the following result. We can perform other basic tasks using the java.net.* classes. However, for more advanced functionality, I recommend the Jakarta CommonsSW HttpClient project, located at http://jakarta.apache.org/commons/httpclient/index.html . |