Hi,
FYI, I just lost several hours time trying to find out why XFire won't
work with proxy authentication against Squid 2.6 although Firefox did
not have problems with it. Squid was set up to authenticate against an
NT domain and would expect only usernames like DOMAIN\user. Turns out
XFire has its own thoughts with this, and cut away the DOMAIN part. The
result was a 407. Grr.
CommonsHttpMessageSender:
private Credentials getCredentials(String username, String password){
client.getParams().setAuthenticationPreemptive(true);
int domainIndex = username.indexOf('\\');
if (domainIndex > 0 && username.length() > domainIndex + 1) {
return new NTCredentials(
username.substring(domainIndex+1),
password,
"localhost", // TODO: resolve local host name
username.substring(0, domainIndex));
}
return new UsernamePasswordCredentials(username,password);
}
Workaround: use a forward slash like DOMAIN/user.
Werner
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email