Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 35951 invoked from network); 10 Apr 2003 22:20:18 -0000 Received: from mailstore.nshosts.com (216.58.174.135) by daedalus.apache.org with SMTP; 10 Apr 2003 22:20:18 -0000 Received: from intencha.com (unverified [202.138.204.102]) by mailstore.nshosts.com (Vircom SMTPRS 5.3.232) with ESMTP id for ; Thu, 10 Apr 2003 16:19:35 -0600 Date: Fri, 11 Apr 2003 08:20:40 +1000 Subject: Re: NTLM Authentication Error Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Adrian Sutton To: "Commons HttpClient Project" Content-Transfer-Encoding: quoted-printable In-Reply-To: <7786E5C72B85D511BAA100065B1951B00242A821@ca.tco.net.br> Message-Id: X-Mailer: Apple Mail (2.551) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Andre, We make heavy use of NTLM authentication and I know of quite a few=20 other people who also use it in HttpClient so I'm pretty certain it's=20 working correctly. =46rom the little information you've provided, it=20 looks like the username, password, realm or host is not being accepted=20= by the server. There are a number of catches to be aware of when using NTLM and these=20= are documented at=20 http://jakarta.apache.org/commons/httpclient/authentication.html If you aren't being hit by any of those problems could you send through=20= the output each step listed in the troubleshooting doc at=20 http://jakarta.apache.org/commons/httpclient/troubleshooting.html in=20 particular a complete log at debug level with wire trace on. Regards, Adrian Sutton. On Wednesday, April 9, 2003, at 08:02 PM, Andr=E9 Augusto de Oliveira=20= Arag=E3o wrote: > HI! > > Did anyone ever sucessfully use NTLM authentication??? I really could=20= > not > figure out where is my mistake... > > Regards > > Andre > > -----Original Message----- > From: Andr=E9 Augusto de Oliveira Arag=E3o > Sent: sexta-feira, 4 de abril de 2003 13:13 > To: 'commons-httpclient-dev@jakarta.apache.org' > Subject: NTLM Authentication Error > > > HI! > > I'm trying to access a ntlm authenticated server, but it=B4s not=20 > working. The > logs are returning the following: > [HttpMethod] Already tried to authenticate to "tconet#null" but still > receiving 401. > > Here=B4s my code: > > HttpClient client =3D new HttpClient(); > client.setConnectionTimeout(60000); > client.getState().setCredentials( > "tconet", > new > NTCredentials("Andre.Augusto","senha","ca_andreaugusto","CACEL01") > ); > String url =3D "http://tconet/index.asp"; > GetMethod method =3D new GetMethod(url); > method.setFollowRedirects(true); > method.setStrictMode(false); > method.setDoAuthentication(true); > logger.info("Trying to reach " + url); > String responseBody =3D null; > long tempoinicial =3D System.currentTimeMillis(); > long tempogasto =3D 0; > try { > int retorno =3D client.executeMethod(method); > ... > ... > > Thanks in advance, > > Andre Augusto > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-httpclient-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail:=20 > commons-httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail:=20 > commons-httpclient-dev-help@jakarta.apache.org >