HttpClient client = new HttpClient();
String url = "http://www.discursive.com/jccook/";
HttpMethod method = new GetMethod( url );
try {
client.executeMethod( method );
String response = method.getResponseBodyAsString();
System.out.println( response );
} catch( HttpException he ) {
System.out.println( "HTTP Problem: " + he.getMessage() );
} catch( IOException ioe ) {
System.out.println( "IO Exeception: " + ioe.getMessage() );
} finally {
method.releaseConnection();
method.recycle();
}