HttpClient client = new HttpClient("127.0.0.1", 443, true);
GetMethod get = new GetMethod("AGENT", "/");
client.setCredentials(new PasswordCredentials("lee", "xxxxxxxxxx"));
client.setPreemtiveAuthentication(true);
HttpResponse response = client.execute(get);
c = new MultiplexedConnection(new SocketChannelFactory());
c.startProtocol(response.getConnection().getInputStream(), response.getConnection().getOutputStream(), false);