Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F303B4EA for ; Sun, 22 Jan 2012 22:08:21 +0000 (UTC) Received: (qmail 50205 invoked by uid 500); 22 Jan 2012 22:08:21 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 50177 invoked by uid 500); 22 Jan 2012 22:08:20 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 50167 invoked by uid 99); 22 Jan 2012 22:08:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 22:08:20 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 22:08:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rp5Zo-0005W9-W6 for httpclient-users@hc.apache.org; Sun, 22 Jan 2012 14:07:52 -0800 Message-ID: <33185089.post@talk.nabble.com> Date: Sun, 22 Jan 2012 14:07:52 -0800 (PST) From: "luciano.musacchio" To: httpclient-users@hc.apache.org Subject: Re: Challenge for Basic authentication scheme not available (?) In-Reply-To: <1327265980.2084.9.camel@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: luciano.musacchio@gmail.com References: <33184745.post@talk.nabble.com> <1327265980.2084.9.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org Thanks Oleg for your reply. Could it be that the proxy is announcing just NTLM but it actually does accept BASIC auth? I mean, I could authenticate using curl: C:\Users\musacchl\Desktop\curl\bin>curl -v --proxy-basic --proxy-user : --url http://www.google.com.ar --proxy http://144.72.225.21:80/ * About to connect() to proxy 144.72.225.21 port 80 (#0) * Trying 144.72.225.21... connected * Proxy auth using Basic with user '' > GET http://www.google.com.ar HTTP/1.1 > Proxy-Authorization: Basic Z21wMTgwOm1hZVQwMTIz > User-Agent: curl/7.23.1 (i386-pc-win32) libcurl/7.23.1 OpenSSL/0.9.8r > zlib/1.2 .5 libidn/1.18 libssh2/1.3.0 librtmp/2.3 > Host: www.google.com.ar > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 OK < Date: Sun, 22 Jan 2012 22:04:21 GMT < Expires: -1 < Cache-Control: private, max-age=3D0 < Content-Type: text/html; charset=3DISO-8859-1 < P3P: CP=3D"This is not a P3P policy! See http://www.google.com/support/accounts/ bin/answer.py?hl=3Den&answer=3D151657 for more info." < Server: gws < X-XSS-Protection: 1; mode=3Dblock < X-Frame-Options: SAMEORIGIN < Transfer-Encoding: chunked < Proxy-Connection: Keep-Alive < Connection: Keep-Alive < Set-Cookie: PREF=3DID=3D9003536854dee7dc:FF=3D0:TM=3D1327269861:LM=3D1327269861:S=3Ditm= A28 PklgxOcuZI; expires=3DTue, 21-Jan-2014 22:04:21 GMT; path=3D/; domain=3D.google.com.ar < Set-Cookie: NID=3D56=3DlB4_bLrbrFvShtTIk-0X_qSQvirjPAFCzZ5wb0r1ryOXHKu8zsi2j6yvqp- EoNgthPJlwCmXR3yndoG47bKC15nJX1HgPKaN5yl0lzb14FemGCNRNqbX_IXNIl8ZOQXE; expires=3DM on, 23-Jul-2012 22:04:21 GMT; path=3D/; domain=3D.google.com.ar; HttpOnly < Google
B=C2= =B7sq ueda http://www.google.com.ar/imghp?hl=3Des&tab=3Dwi Im=C3=9Fgene s http://video.google.com.ar/?hl=3Des&tab=3Dwv V=CF=86deos =20 http://news.google.com.ar/nwshp?hl=3Des&tab=3Dwn Noticias =20 http://translate.google.com.ar/?hl=3Des&tab=3DwT Traductor =20 http://books.google.com.ar/bkshp?hl=3Des&tab=3Dwp Libros =20 https://mail.google.com/mail/?tab=3Dwm Gmail =20 http://www.google.com.ar/intl/es/options/ M=C3=9Fs »
< /span> http://www.goog le.com/history/optout?hl=3Des Historial web | /preference s?hl=3Des-419 Configuraci=E2=89=A4n | https://accounts.go ogle.com/ServiceLogin?hl=3Des&continue=3Dhttp://www.google.com.ar/ Accede r


 
/advanced_= sea rch?hl=3Des-419 B=C2=B7squeda avanzada /language_tools?hl=3Des-419 Herrami= e ntas de idioma

/intl/es-419/ads/ Programas de publ icidad /services/ Soluciones Empresariales https://plus .google.com/112209395112018703654 +Google /intl/es- 419/about.html Todo acerca de Google http://www.google.com/ncr Google.com in English

© 2012 - /intl/es-419/privacy.html Privacidad

< script>(function(){ var b,d,e,f;function g(a,c){if(a.removeEventListener){a.removeEventListener("loa d",c,false);a.removeEventListener("error",c,false)}else{a.detachEvent("onlo= ad",c );a.detachEvent("onerror",c)}}function h(a){f=3D(new Date).getTime();++d;a=3Da||wind ow.event;var c=3Da.target||a.srcElement;g(c,h)}var i=3Ddocument.getElementsByTagName ("img");b=3Di.length;d=3D0;for(var j=3D0,k;j* Connection #0 to host 144.72.225.21 left intact * Closing connection #0 olegk wrote: >=20 > On Sun, 2012-01-22 at 12:34 -0800, luciano.musacchio wrote: >> Hi all, >>=20 >> I don't seem to make the ClientProxyAuthentication [1] example work with >> BASIC authentication. I've tried HttpClient 4.1, 4.2-a, 4.2-a2. I've >> tested >> the proxy using curl and it works fine. Below is my log output. >>=20 >> I appreciate any guidance you can give me, >>=20 >=20 >> 2012/01/22 15:12:14:689 VET [DEBUG] wire - << "HTTP/1.1 407 Proxy >> Authentication Required[\r][\n]" >> 2012/01/22 15:12:14:692 VET [DEBUG] wire - << "Proxy-Authenticate: >> NTLM[\r][\n]" >=20 > The proxy you are trying to authenticate allows NTLM auth scheme only. > It has not been configured to support BASIC auth. You need to be using > special extended credentials (NTCredentials class) that include a NT > domain and host for the NTLM auth to have a chance to succeed. =20 >=20 > Oleg >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org >=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/Challenge-for-Basic-aut= hentication-scheme-not-available-%28-%29-tp33184745p33185089.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org