hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anon permutation" <anonpermutat...@hotmail.com>
Subject Make HttpClient pick Basic Auth over NTLM?
Date Thu, 04 Dec 2003 05:16:46 GMT


I am using a proxy server that supports both NTLM and Basic Authentications. 
  How do I make HttpClient use Basic Auth. instead of NTLM?  I am using 
2.0-rc2.  Following is my code:

HttpClient client = new HttpClient();
HttpMethod method = null;

client.getState().setProxyCredentials(null, new 

HostConfiguration hc = client.getHostConfiguration();
hc.setProxy("", 80);

method = new GetMethod(url);
byte[] responseBody = method.getResponseBody();

I am getting this error:
Credentials cannot be used for NTLM authentication


Browse styles for all ages, from the latest looks to cozy weekend wear at 
MSN Shopping.  And check out the beauty products! http://shopping.msn.com

To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message