Pauline,

As far as I can tell all the requests generated by HttpClient look
perfectly sane. The server simply does not seem to like the credentials
supplied by the client. Are you sure you are using the correct user name
/ password / domain / host params? Any of these four params being
invalid will cause the NTLM scheme to fail.

Actually this is the very time I see Squid proxy configured to use NTLM
authentication. Frankly, I do not know if HttpClient is compatible with
squid's implementation of NTLM auth. Consider using BASIC auth, at least
initially, to test the credentials

Oleg

>> "GET http://www.yahoo.fr/ HTTP/1.1[\r][\n]"
>> "User-Agent: Jakarta Commons-HttpClient/3.0-rc2[\r][\n]"
>> "Host: www.yahoo.fr[\r][\n]"
>> "Proxy-Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"

<< "HTTP/1.0 407 Proxy Authentication Required[\r][\n]"
<< "Server: squid/2.5.STABLE9[\r][\n]"
<< "Mime-Version: 1.0[\r][\n]"
<< "Date: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "Content-Type: text/html[\r][\n]"
<< "Content-Length: 1462[\r][\n]"
<< "Expires: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
<< "Proxy-Authenticate: NTLM[\r][\n]"
<< "Proxy-Authenticate: Basic realm="Squid proxy-caching web
server"[\r][\n]"
<< "X-Cache: MISS from ProxyA[\r][\n]"
<< "Proxy-Connection: close[\r][\n]"

>> "GET http://www.yahoo.fr/ HTTP/1.0[\r][\n]"
>> "User-Agent: Jakarta Commons-HttpClient/3.0-rc2[\r][\n]"
>> "Proxy-Authorization: NTLM
>> TlRMTVNTUAABAAAABlIAAAMAAwAsAAAADAAMACAAAABQQy1DQU5UQUxPVVBUTFM=[\r][\n]"
>> "Host: www.yahoo.fr[\r][\n]"
>> "Proxy-Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"

<< "HTTP/1.0 407 Proxy Authentication Required[\r][\n]"
<< "Server: squid/2.5.STABLE9[\r][\n]"
<< "Mime-Version: 1.0[\r][\n]"
<< "Date: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "Content-Type: text/html[\r][\n]"
<< "Content-Length: 1462[\r][\n]"
<< "Expires: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
<< "Proxy-Authenticate: NTLM
TlRMTVNTUAACAAAAAAAAADAAAAASAgAAE+F7GZvD+bAAAAAAAAAAAAAAAAAwAAAA[\r][\n]"
<< "X-Cache: MISS from ProxyA[\r][\n]"
<< "Proxy-Connection: keep-alive[\r][\n]"

>> "GET http://www.yahoo.fr/ HTTP/1.0[\r][\n]"
>> "User-Agent: Jakarta Commons-HttpClient/3.0-rc2[\r][\n]"
>> "Proxy-Authorization: NTLM
>> TlRMTVNTUAADAAAAGAAYAGAAAAAAAAAAeAAAAAMAAwBAAAAAEQARAEMAAAAMAAwAVAAAAAAAAAB4A
>> AAABlIAAFRMU1BBVUxJTkUuQ0FOVEFMT1VQUEMtQ0FOVEFMT1VQA/uQagaqmRXdJR+BBqxQ4gMONR
>> a81Qhc[\r][\n]"
>> "Host: www.yahoo.fr[\r][\n]"
>> "Proxy-Connection: Keep-Alive[\r][\n]"
>> "[\r][\n]"

<< "HTTP/1.0 407 Proxy Authentication Required[\r][\n]"
<< "Server: squid/2.5.STABLE9[\r][\n]"
<< "Mime-Version: 1.0[\r][\n]"
<< "Date: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "Content-Type: text/html[\r][\n]"
<< "Content-Length: 1462[\r][\n]"
<< "Expires: Mon, 30 May 2005 12:40:47 GMT[\r][\n]"
<< "X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
<< "Proxy-Authenticate: NTLM[\r][\n]"
<< "Proxy-Authenticate: Basic realm="Squid proxy-caching web
server"[\r][\n]"
<< "X-Cache: MISS from ProxyA[\r][\n]"
<< "Proxy-Connection: close[\r][\n]"




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to