String user = prompter.getUser();
String password = prompter.getPassword();
// Compute credentials:
credentials = HttpFactory.makeCredential("Basic");
Base64Encoder encoder = new Base64Encoder(user+":"+password);
credentials.setAuthParameter("cookie", encoder.processString());
}
// Now restart the request we the right auth infos:
if ( request.hasProxy() )
request.setProxyAuthorization(credentials);
else