Return-Path:
Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org
Received: (qmail 39848 invoked from network); 30 May 2005 12:56:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 30 May 2005 12:56:56 -0000
Received: (qmail 74448 invoked by uid 500); 30 May 2005 12:56:47 -0000
Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org
Received: (qmail 74435 invoked by uid 500); 30 May 2005 12:56:47 -0000
Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe:
List-Help:
List-Post:
List-Id: "Jakarta Commons Users List"
Reply-To: "Jakarta Commons Users List"
Delivered-To: mailing list commons-user@jakarta.apache.org
Received: (qmail 74398 invoked by uid 99); 30 May 2005 12:56:47 -0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: local policy)
Received: from lxmx3.123multimedia.com (HELO lxmx3.123multimedia.com)
(194.250.185.233)
by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 05:56:45 -0700
Received: by lxmx3.123multimedia.com (Postfix, from userid 5002)
id B2975157B35; Mon, 30 May 2005 14:56:33 +0200 (CEST)
Received: from DEVSERV04.tls.123multimedia.com (unknown [192.168.240.2])by
lxmx3.123multimedia.com (Postfix) with ESMTP id 2E232157B52for
; Mon, 30 May 2005 14:56:32 +0200 (CEST)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [HTTPClient] Problems to connect to a proxy
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Date: Mon, 30 May 2005 14:56:27 +0200
Message-ID:
<153E2BD74548D1408FFF45D4D27E2A5801589888@devserv04.tls.123multimedia.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [HTTPClient] Problems to connect to a proxy
thread-index: AcVlFAsD+ElKRfQSSv2R+Bi6tsn/lAAAOJdQ
From: "Pauline CANTALOUP"
To: "Jakarta Commons Users List"
X-Copyrighted-Material: Please visit http://www.123multimedia.com/privacy.html
X-Virus-Checked: Checked
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Sorry, here are logs. I don't understand lines
"2005/05/30 14:40:47:676 CEST [DEBUG] HttpMethodDirector - Proxy =
credentials
required
2005/05/30 14:40:47:692 CEST [DEBUG] HttpMethodDirector - Proxy =
credentials
provider not available"
Does it mean I didn't set credentials in the right object ?
2005/05/30 14:40:46:973 CEST [DEBUG] HttpClient - Java version: 1.5.0_01
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - Java vendor: Sun
Microsystems Inc.
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - Java class path:
C:\eclipse\workspace\CheckHeaders\webapp\WEB-INF\classes;C:\eclipse\works=
pace
\CheckHeaders\webapp\WEB-INF\lib\commons-logging.jar;C:\eclipse\workspace=
\Che
ckHeaders\webapp\WEB-INF\lib\commons-httpclient-3.0-rc2.jar;C:\eclipse\wo=
rksp
ace\CheckHeaders\webapp\WEB-INF\lib\commons-codec-1.3.jar
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - Operating system name:
Windows XP
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - Operating system
architecture: x86
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - Operating system =
version:
5.1
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SUN 1.5: SUN (DSA
key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom;
X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX
CertPathBuilder; LDAP, Collection CertStores)
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SunRsaSign 1.5: Sun =
RSA
signature provider
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SunJSSE 1.5: Sun JSSE
provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SunJCE 1.5: SunJCE =
Provider
(implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE,
Diffie-Hellman, HMAC)
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SunJGSS 1.0: Sun =
(Kerberos
v5)
2005/05/30 14:40:47:004 CEST [DEBUG] HttpClient - SunSASL 1.5: Sun SASL
provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL,
PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.useragent =3D Jakarta Commons-HttpClient/3.0-rc2
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.version =3D HTTP/1.1
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.connection-manager.class =3D class
org.apache.commons.httpclient.SimpleHttpConnectionManager
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.cookie-policy =3D rfc2109
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.element-charset =3D US-ASCII
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.content-charset =3D ISO-8859-1
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.method.retry-handler =3D
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@d251a3
2005/05/30 14:40:47:020 CEST [DEBUG] DefaultHttpParams - Set parameter
http.dateparser.patterns =3D [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, =
dd-MMM-yy
HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE,
dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy =
HH:mm:ss
z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy
HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z,
EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
2005/05/30 14:40:47:145 CEST [DEBUG] HttpConnection - Open connection to
192.168.10.225:8888
2005/05/30 14:40:47:192 CEST [DEBUG] header - >> "GET =
http://www.yahoo.fr/
HTTP/1.1[\r][\n]"
2005/05/30 14:40:47:192 CEST [DEBUG] HttpMethodBase - Adding Host =
request
header
2005/05/30 14:40:47:207 CEST [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0-rc2[\r][\n]"
2005/05/30 14:40:47:207 CEST [DEBUG] header - >> "Host: =
www.yahoo.fr[\r][\n]"
2005/05/30 14:40:47:207 CEST [DEBUG] header - >> "Proxy-Connection:
Keep-Alive[\r][\n]"
2005/05/30 14:40:47:207 CEST [DEBUG] header - >> "[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "HTTP/1.0 407 Proxy
Authentication Required[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Server:
squid/2.5.STABLE9[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Mime-Version: =
1.0[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Date: Mon, 30 May 2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Content-Type:
text/html[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Content-Length:
1462[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Expires: Mon, 30 May =
2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "X-Squid-Error:
ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Proxy-Authenticate:
NTLM[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Proxy-Authenticate: =
Basic
realm=3D"Squid proxy-caching web server"[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "X-Cache: MISS from
ProxyA[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] header - << "Proxy-Connection:
close[\r][\n]"
2005/05/30 14:40:47:223 CEST [DEBUG] HttpMethodDirector - Authorization
required
2005/05/30 14:40:47:238 CEST [DEBUG] AuthChallengeProcessor - Supported
authentication schemes in the order of preference: [ntlm, digest, basic]
2005/05/30 14:40:47:238 CEST [INFO] AuthChallengeProcessor - ntlm
authentication scheme selected
2005/05/30 14:40:47:238 CEST [DEBUG] AuthChallengeProcessor - Using
authentication scheme: ntlm
2005/05/30 14:40:47:238 CEST [DEBUG] AuthChallengeProcessor - =
Authorization
challenge processed
2005/05/30 14:40:47:238 CEST [DEBUG] HttpMethodDirector - Proxy
authentication scope: NTLM @192.168.10.225:8888
2005/05/30 14:40:47:238 CEST [DEBUG] HttpMethodDirector - Retry
authentication
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "ERREUR :
Accès au cache interdit[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "ERREUR
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "Accès au =
cache
interdit
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "En essayant de =
charger
l'URL :[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "http://www.yahoo.fr/[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "L'erreur suivante a
été rencontrée :[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "- [\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "Accès au cache
interdit.[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << =
"Désolé,
vous n'êtes actuellement pas autorisé[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "à =
demander[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
http://www.yahoo.fr/
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "à ce cache =
tant que
vous ne vous êtes pas identifié.[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "Vous avez besoin de
Netscape version 2.0 ou supérieure, ou Microsoft[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "Internet Explorer =
3.0, ou
un "
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "navigateur conforme
à HTTP/1.1 pour que[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "ceci fonctionne. =
Veuillez
contacter l'administrateur du =
cache[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "si vous avez des
difficultés à vous authentifier, ou[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "changez votre mot de
passe.[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "Generated Mon, 30 May =
2005
12:40:47 GMT by ProxyA (squid/2.5.STABLE9)[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:254 CEST [DEBUG] HttpMethodBase - Should close =
connection
in response to directive: close
2005/05/30 14:40:47:254 CEST [DEBUG] HttpConnection - Connection is =
locked.
Call to releaseConnection() ignored.
2005/05/30 14:40:47:270 CEST [DEBUG] HttpMethodDirector - Authenticating =
with
NTLM @192.168.10.225:8888
2005/05/30 14:40:47:285 CEST [DEBUG] HttpMethodParams - Credential =
charset
not configured, using HTTP element charset
2005/05/30 14:40:47:285 CEST [DEBUG] HttpConnection - Open connection to
192.168.10.225:8888
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "GET =
http://www.yahoo.fr/
HTTP/1.0[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] HttpMethodBase - Adding Host =
request
header
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0-rc2[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "Proxy-Authorization: =
NTLM
TlRMTVNTUAABAAAABlIAAAMAAwAsAAAADAAMACAAAABQQy1DQU5UQUxPVVBUTFM=3D[\r][\n=
]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "Host: =
www.yahoo.fr[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "Proxy-Connection:
Keep-Alive[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - >> "[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "HTTP/1.0 407 Proxy
Authentication Required[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Server:
squid/2.5.STABLE9[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Mime-Version: =
1.0[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Date: Mon, 30 May 2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Content-Type:
text/html[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Content-Length:
1462[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Expires: Mon, 30 May =
2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "X-Squid-Error:
ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Proxy-Authenticate: =
NTLM
TlRMTVNTUAACAAAAAAAAADAAAAASAgAAE+F7GZvD+bAAAAAAAAAAAAAAAAAwAAAA[\r][\n]"=
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "X-Cache: MISS from
ProxyA[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] header - << "Proxy-Connection:
keep-alive[\r][\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] HttpMethodDirector - Authorization
required
2005/05/30 14:40:47:301 CEST [DEBUG] AuthChallengeProcessor - Using
authentication scheme: ntlm
2005/05/30 14:40:47:301 CEST [DEBUG] AuthChallengeProcessor - =
Authorization
challenge processed
2005/05/30 14:40:47:301 CEST [DEBUG] HttpMethodDirector - Proxy
authentication scope: NTLM @192.168.10.225:8888
2005/05/30 14:40:47:301 CEST [DEBUG] HttpMethodDirector - Retry
authentication
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "ERREUR :
Accès au cache interdit[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "ERREUR
[\n]"
2005/05/30 14:40:47:301 CEST [DEBUG] content - << "Accès au =
cache
interdit
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "En essayant de =
charger
l'URL :[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "http://www.yahoo.fr/[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "L'erreur suivante a
été rencontrée :[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "- [\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "Accès au cache
interdit.[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << =
"Désolé,
vous n'êtes actuellement pas autorisé[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "à =
demander[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
http://www.yahoo.fr/
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "à ce cache =
tant que
vous ne vous êtes pas identifié.[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "Vous avez besoin de
Netscape version 2.0 ou supérieure, ou Microsoft[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "Internet Explorer =
3.0, ou
un "
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "navigateur conforme
à HTTP/1.1 pour que[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "ceci fonctionne. =
Veuillez
contacter l'administrateur du =
cache[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "si vous avez des
difficultés à vous authentifier, ou[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "changez votre mot de
passe.[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "Generated Mon, 30 May =
2005
12:40:47 GMT by ProxyA (squid/2.5.STABLE9)[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:317 CEST [DEBUG] HttpMethodBase - Should NOT close
connection in response to directive: keep-alive
2005/05/30 14:40:47:317 CEST [DEBUG] HttpConnection - Connection is =
locked.
Call to releaseConnection() ignored.
2005/05/30 14:40:47:317 CEST [DEBUG] HttpMethodDirector - Authenticating =
with
NTLM @192.168.10.225:8888
2005/05/30 14:40:47:317 CEST [DEBUG] HttpMethodParams - Credential =
charset
not configured, using HTTP element charset
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "GET =
http://www.yahoo.fr/
HTTP/1.0[\r][\n]"
2005/05/30 14:40:47:613 CEST [DEBUG] HttpMethodBase - Adding Host =
request
header
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0-rc2[\r][\n]"
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "Proxy-Authorization: =
NTLM
TlRMTVNTUAADAAAAGAAYAGAAAAAAAAAAeAAAAAMAAwBAAAAAEQARAEMAAAAMAAwAVAAAAAAAA=
AB4A
AAABlIAAFRMU1BBVUxJTkUuQ0FOVEFMT1VQUEMtQ0FOVEFMT1VQA/uQagaqmRXdJR+BBqxQ4g=
MONR
a81Qhc[\r][\n]"
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "Host: =
www.yahoo.fr[\r][\n]"
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "Proxy-Connection:
Keep-Alive[\r][\n]"
2005/05/30 14:40:47:613 CEST [DEBUG] header - >> "[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "HTTP/1.0 407 Proxy
Authentication Required[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Server:
squid/2.5.STABLE9[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Mime-Version: =
1.0[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Date: Mon, 30 May 2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Content-Type:
text/html[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Content-Length:
1462[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Expires: Mon, 30 May =
2005
12:40:47 GMT[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "X-Squid-Error:
ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Proxy-Authenticate:
NTLM[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Proxy-Authenticate: =
Basic
realm=3D"Squid proxy-caching web server"[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "X-Cache: MISS from
ProxyA[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] header - << "Proxy-Connection:
close[\r][\n]"
2005/05/30 14:40:47:676 CEST [DEBUG] HttpMethodDirector - Authorization
required
2005/05/30 14:40:47:676 CEST [DEBUG] AuthChallengeProcessor - Using
authentication scheme: ntlm
2005/05/30 14:40:47:676 CEST [DEBUG] AuthChallengeProcessor - =
Authorization
challenge processed
2005/05/30 14:40:47:676 CEST [DEBUG] HttpMethodDirector - Proxy
authentication scope: NTLM @192.168.10.225:8888
2005/05/30 14:40:47:676 CEST [DEBUG] HttpMethodDirector - Proxy =
credentials
required
2005/05/30 14:40:47:692 CEST [DEBUG] HttpMethodDirector - Proxy =
credentials
provider not available
2005/05/30 14:40:47:692 CEST [INFO] HttpMethodDirector - Failure
authenticating with NTLM @192.168.10.225:8888
2005/05/30 14:40:47:692 CEST [DEBUG] HttpMethodBase - Buffering response =
body
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "ERREUR :
Accès au cache interdit[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "ERREUR
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "Accès au =
cache
interdit
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "En essayant de =
charger
l'URL :[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "http://www.yahoo.fr/[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "L'erreur suivante a
été rencontrée :[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "- [\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "Accès au cache
interdit.[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << =
"Désolé,
vous n'êtes actuellement pas autorisé[\n]"
2005/05/30 14:40:47:692 CEST [DEBUG] content - << "à =
demander[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "
http://www.yahoo.fr/
[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "à ce cache =
tant que
vous ne vous êtes pas identifié.[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "Vous avez besoin de
Netscape version 2.0 ou supérieure, ou Microsoft[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "Internet Explorer =
3.0, ou
un navigateur conforme à HTTP/1.1 pour que[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "ceci fonctionne. =
Veuillez
contacter l'administrateur du =
cache[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "si vous avez des
difficultés à vous authentifier, ou[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "changez votre mot de
passe.[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "
[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "Generated Mon, 30 May =
2005
12:40:47 GMT by ProxyA (squid/2.5.STABLE9)[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] content - << "[\n]"
2005/05/30 14:40:47:707 CEST [DEBUG] HttpMethodBase - Should close =
connection
in response to directive: close
2005/05/30 14:40:47:707 CEST [DEBUG] HttpConnection - Releasing =
connection
back to connection manager.
2005/05/30 14:40:47:707 CEST [DEBUG] HttpMethodBase - Default charset =
used:
ISO-8859-1=20
-----Message d'origine-----
De : Oleg Kalnichevski [mailto:olegk@apache.org]=20
Envoy=E9 : lundi 30 mai 2005 14:35
=C0 : commons-user@jakarta.apache.org
Objet : Re: [HTTPClient] Problems to connect to a proxy
Pauline,
Please post the complete wire/context log of the HTTP session.
http://jakarta.apache.org/commons/httpclient/3.0/logging.html
Oleg
On Mon, May 30, 2005 at 02:24:48PM +0200, Pauline CANTALOUP wrote:
> Hello
>=20
> I have to connect to a proxy in order to reach a website. So I wrote :
> try {
> HttpClient client =3D new HttpClient();
> HostConfiguration hostConfig=3Dnew HostConfiguration();
> hostConfig.setProxy("192.168.10.225",8888);
> client.setHostConfiguration(hostConfig);
>=20
> NTCredentials ntc=3Dnew
> NTCredentials("user","pass","pc-cantaloup","tls");
> client.getState().setProxyCredentials(AuthScope.ANY,ntc);
> GetMethod method =3D new GetMethod(url);
> method.setFollowRedirects(true);
>=20
> // Execute the GET method
> int statusCode =3D client.executeMethod(method);
> if (statusCode !=3D -1) {
> String contents =3D method.getResponseBodyAsString();
> method.releaseConnection();
> System.out.println(contents);
> }
> } catch (Exception e) {
> e.printStackTrace();
> }
> In traces, I readed : "INFO: ntlm authentication scheme selected" so I =
> supposed the library choose the authentication type by itself. But=20
> then I have this error :
>=20
> 30 mai 2005 14:02:04 org.apache.commons.httpclient.HttpMethodDirector
> processProxyAuthChallenge
> INFO: Failure authenticating with NTLM @192.168.10.225:8888
>=20
> I thought it was perhaps a problem of encryption so I added :
>=20
> try {
> String secProviderName =3D "com.sun.crypto.provider.SunJCE";
> java.security.Provider secProvider =3D
> =20
> (java.security.Provider)Class.forName(secProviderName).newInstance();
> Security.addProvider(secProvider);
> }catch(Exception e) {
> e.printStackTrace();
> }
>=20
> But nothing changed. The man who manages proxy said he didn't see my=20
> request for authentication.
> So what could I try ?
> Thanks in advance for your help !
>=20
> Pauline Cantaloup
> --
> 123 Multim?dia
> Service mobilit?
> 05.61.43.16.68
>=20
>=20
> D?charge / Disclaimer
>=20
> Ce message et toutes les pi?ces jointes (ci-apr?s le "message") sont=20
> confidentiels et ?tablis ? l'intention exclusive des destinataires.=20
> Toute utilisation ou diffusion non autoris?e est interdite. Tout=20
> message ?lectronique ?tant susceptible d'alt?ration,
>=20
> This message and any attachments (the "message") are confidential and=20
> intended solely for the addressees. Any unauthorised use or=20
> dissemination is prohibited. E-mails are susceptible to alteration.=20
> Therefore neither 123Multim?dia nor any of its subsidiari
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>=20
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
D�charge / Disclaimer
Ce message et toutes les pi�ces jointes (ci-apr�s le "message") sont confidentiels et �tablis � l'intention exclusive des destinataires. Toute utilisation ou diffusion non autoris�e est interdite. Tout message �lectronique �tant susceptible d'alt�ration, 123Multim�dia et ses filiales d�clinent toute responsabilit� au titre de ce message s'il a �t� alt�r�, d�form� ou falsifi�.
This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Therefore neither 123Multim�dia nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org