private HttpClientExtended (String user, String password){
super();
// System.out.println("####### " + Thread.currentThread().getName() + " : Creating client " + user);
setUser(user);
WebdavState state = new WebdavState();
Credentials cred = new UsernamePasswordCredentials(user, password);
// state.setURLDecodingCharset(defaultUrlEncoding);
// state.setURLEncodingCharset(defaultUrlEncoding);
startSession((String)startUp.get("host"),
((Integer)startUp.get("port") ).intValue());
state.setCredentials(null, cred);
state.setAuthenticationPreemptive(true); // avoid non-authenticated method invocation
setState(state);
}