Hi Oleg, thanks for the attention!

Below you can find the log!

2011/01/25 23:50:13:948 GMT [INFO] HttpPublisher - Parsing uri: 
http://www.campacci.com.br:80/
2011/01/25 23:50:13:948 GMT [INFO] HttpPublisher - Connecting to 
www.campacci.com.br:80,/,null via GET
2011/01/25 23:50:14:258 GMT [DEBUG] SingleClientConnManager - Get connection 
for route 
HttpRoute[{}->http://192.168.160.3:8080->http://www.campacci.com.br:80]
2011/01/25 23:50:14:266 GMT [DEBUG] DefaultClientConnectionOperator - 
Connecting to /192.168.160.3:8080
2011/01/25 23:50:14:329 GMT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2011/01/25 23:50:14:372 GMT [DEBUG] DefaultHttpClient - Attempt 1 to execute 
request
2011/01/25 23:50:14:373 GMT [DEBUG] DefaultClientConnection - Sending request: 
GET http://www.campacci.com.br:80/ HTTP/1.1
2011/01/25 23:50:14:373 GMT [DEBUG] wire - >> "GET 
http://www.campacci.com.br:80/ HTTP/1.1[\r][\n]"
2011/01/25 23:50:14:377 GMT [DEBUG] wire - >> "Host: 
www.campacci.com.br:80[\r][\n]"
2011/01/25 23:50:14:377 GMT [DEBUG] wire - >> "Proxy-Connection: 
Keep-Alive[\r][\n]"
2011/01/25 23:50:14:377 GMT [DEBUG] wire - >> "User-Agent: 
Apache-HttpClient/4.1 (java 1.5)[\r][\n]"
2011/01/25 23:50:14:377 GMT [DEBUG] wire - >> "[\r][\n]"
2011/01/25 23:50:14:377 GMT [DEBUG] headers - >> GET 
http://www.campacci.com.br:80/ HTTP/1.1
2011/01/25 23:50:14:377 GMT [DEBUG] headers - >> Host: www.campacci.com.br:80
2011/01/25 23:50:14:377 GMT [DEBUG] headers - >> Proxy-Connection: Keep-Alive
2011/01/25 23:50:14:377 GMT [DEBUG] headers - >> User-Agent: 
Apache-HttpClient/4.1 (java 1.5)
2011/01/25 23:50:14:454 GMT [DEBUG] wire - << "HTTP/1.0 407 Proxy 
Authentication Required[\r][\n]"
2011/01/25 23:50:14:458 GMT [DEBUG] wire - << "Server: 
squid/2.6.STABLE6[\r][\n]"
2011/01/25 23:50:14:459 GMT [DEBUG] wire - << "Date: Tue, 25 Jan 2011 23:50:14 
GMT[\r][\n]"
2011/01/25 23:50:14:459 GMT [DEBUG] wire - << "Content-Type: text/html[\r][\n]"
2011/01/25 23:50:14:459 GMT [DEBUG] wire - << "Content-Length: 1305[\r][\n]"
2011/01/25 23:50:14:459 GMT [DEBUG] wire - << "Expires: Tue, 25 Jan 2011 
23:50:14 GMT[\r][\n]"
2011/01/25 23:50:14:459 GMT [DEBUG] wire - << "X-Squid-Error: 
ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
2011/01/25 23:50:14:461 GMT [DEBUG] wire - << "Proxy-Authenticate: Basic 
realm="*Enter user and pwd*"[\r][\n]"
2011/01/25 23:50:14:461 GMT [DEBUG] wire - << "X-Cache: MISS from 
prxinb.ptinovacao.com.br[\r][\n]"
2011/01/25 23:50:14:461 GMT [DEBUG] wire - << "X-Cache-Lookup: NONE from 
prxinb.ptinovacao.com.br:8080[\r][\n]"
2011/01/25 23:50:14:461 GMT [DEBUG] wire - << "Proxy-Connection: close[\r][\n]"
2011/01/25 23:50:14:461 GMT [DEBUG] wire - << "[\r][\n]"
2011/01/25 23:50:14:464 GMT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.0 407 Proxy Authentication Required
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << HTTP/1.0 407 Proxy 
Authentication Required
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Server: squid/2.6.STABLE6
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Date: Tue, 25 Jan 2011 
23:50:14 GMT
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Content-Type: text/html
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Content-Length: 1305
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Expires: Tue, 25 Jan 2011 
23:50:14 GMT
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << X-Squid-Error: 
ERR_CACHE_ACCESS_DENIED 0
2011/01/25 23:50:14:464 GMT [DEBUG] headers - << Proxy-Authenticate: Basic 
realm="*Enter user and pwd*"
2011/01/25 23:50:14:465 GMT [DEBUG] headers - << X-Cache: MISS from 
prxinb.ptinovacao.com.br
2011/01/25 23:50:14:465 GMT [DEBUG] headers - << X-Cache-Lookup: NONE from 
prxinb.ptinovacao.com.br:8080
2011/01/25 23:50:14:465 GMT [DEBUG] headers - << Proxy-Connection: close
2011/01/25 23:50:14:470 GMT [DEBUG] DefaultHttpClient - Proxy requested 
authentication
2011/01/25 23:50:14:470 GMT [DEBUG] DefaultProxyAuthenticationHandler - 
Authentication schemes in the order of preference: [negotiate, NTLM, Digest, 
Basic]
2011/01/25 23:50:14:471 GMT [DEBUG] DefaultProxyAuthenticationHandler - 
Challenge for negotiate authentication scheme not available
2011/01/25 23:50:14:471 GMT [DEBUG] DefaultProxyAuthenticationHandler - 
Challenge for NTLM authentication scheme not available
2011/01/25 23:50:14:471 GMT [DEBUG] DefaultProxyAuthenticationHandler - 
Challenge for Digest authentication scheme not available
2011/01/25 23:50:14:471 GMT [DEBUG] DefaultProxyAuthenticationHandler - Basic 
authentication scheme selected
2011/01/25 23:50:14:481 GMT [DEBUG] DefaultHttpClient - Authorization challenge 
processed
2011/01/25 23:50:14:481 GMT [DEBUG] DefaultHttpClient - Authentication scope: 
BASIC '*Enter user and pwd*'@192.168.160.3:8080
2011/01/25 23:50:14:482 GMT [DEBUG] DefaultHttpClient - Found credentials
2011/01/25 23:50:14:482 GMT [DEBUG] DefaultClientConnection - Connection closed
2011/01/25 23:50:14:483 GMT [DEBUG] DefaultClientConnectionOperator - 
Connecting to /192.168.160.3:8080
2011/01/25 23:50:14:501 GMT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2011/01/25 23:50:14:505 GMT [DEBUG] DefaultClientConnection - Connection shut 
down

Regards,

Rodrigo B. Campacci
[email protected] 


-----Original Message-----
From: Oleg Kalnichevski [mailto:[email protected]] 
Sent: terça-feira, 25 de janeiro de 2011 08:48
To: [email protected]
Subject: RE: Problem with Proxy Basic Authentication

On Mon, 2011-01-24 at 21:50 -0200, Rodrigo B. Campacci wrote:
> Hi,
> 
> I'm trying to make a GET request through a HTTP proxy (squid) with basic
> authentication (user and password).
> 
> I found a sample of how to do that using version 3.0, but for version 4.x I
> can't found this.
> 

Please post a _complete_ wire / context log of the session

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to