HttpClient client = new HttpClient();
// Set credentials on the client
Credentials credentials =
new NTCredentials( "testuser", "crazypass", "tobrien.discursive.com", "DOMAIN" );
client.getState().setCredentials( null, null, credentials );
String url = "http://webmail.domain.biz/exchange/";
HttpMethod method = new GetMethod( url );
client.executeMethod( method );
String response = method.getResponseBodyAsString();
System.out.println( response );
method.releaseConnection();