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

Page: < 1 2

(Continued from page 1)

If I execute the above code, I obtain the following result.

Execution of ConvertUrlToString

We can perform other basic tasks using the* classes. However, for more advanced functionality, I recommend the Jakarta CommonsSW HttpClient project, located at .

Page: < 1 2