Hi,
I am trying to access a site def.com and it is having a proxy abc.com.
The proxy abc.com is authenticated using basic scheme. Here is the breif
description on the request and reponse between the client and server :
Flow of requests between client and server:
1) Client tries to access def.com/authenticate_proxy.html
2) Server responds back with 407 saying authentication is required and with
the header Proxy-Authenticate: Basic realm="Password Required For Realm1
3) Client takes this challenge and responds back with basic scheme and
provides the credentials required.
4) Server again sends back with 407 status
Code used to set credentials and authentication Scope and execute the
client:
HttpGet get = new HttpGet("http://abc.com/authenticate_proxy1.html");
AuthScope proxyAuthScope = getAuthScope("def.com","80",Realm1);
NTCredentials proxyCredentials = new NTCredentials("pass",
"pass",null,"Realm1");
CredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(proxyAuthScope, proxyCredentials);
CloseableHttpClient
client=httpClientBuilder.setDefaultCredentialsProvider(credsProvider).build();
client.execute(get)
*Note : When i use UsernamePasswordCredentials instead of NTCredentials i am
not facing any issue.
But in our case i need NTCredentials.*
Here is the log :
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] *http.proxy.host = def.com*
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] *http.proxy.port = 80*
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] http.timeout = 10000
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] http.content.limit = 1048576
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] http.agent = TestAgent/WebCrawler
INFO 2014-09-29 10:22:14,145 1494
org.apache.nutch.protocol.httpclient.Http
[main] http.robots.ignore = false
INFO 2014-09-29 10:22:14,364 1713
org.apache.nutch.protocol.httpclient.Http
[main] setting up proxy (host:port realm): def.com:80 Realm1
INFO 2014-09-29 10:22:14,364 1713
org.apache.nutch.protocol.httpclient.Http
[main] proxy credentials: username: pass password:pass client host: proxy
realm: Realm1
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.nutch.protocol.httpclient.HttpResponse [pool-1-thread-1]
fetch
(fetch) http://abc.com/authenticate_proxy1.html executing GET
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.http.client.protocol.RequestAddCookies [pool-1-thread-1]
CookieSpec selected: best-match
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.http.client.protocol.RequestAuthCache [pool-1-thread-1]
Auth
cache not set in the context
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.http.impl.conn.PoolingHttpClientConnectionManager
[pool-1-thread-1] Connection request: [route:
{}->http://def.com:80->http://abc.com:80][total kept alive: 0; route
allocated: 0 of 52; total allocated: 0 of 52]
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.http.impl.conn.PoolingHttpClientConnectionManager
[pool-1-thread-1] Connection leased: [id: 1][route:
{}->http://def.com:80->http://abc.com:80][total kept alive: 0; route
allocated: 1 of 52; total allocated: 1 of 52]
DEBUG 2014-09-29 10:22:15,958 3307
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Opening
connection {}->http://def.com:80->http://abc.com:80
DEBUG 2014-09-29 10:22:15,959 3308
org.apache.http.conn.HttpClientConnectionManager [pool-1-thread-1]
Connecting to def.com/10.x.x.x:80
DEBUG 2014-09-29 10:22:16,260 3609
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1]
Executing
request GET http://abc.com/authenticate_proxy1.html HTTP/1.0
DEBUG 2014-09-29 10:22:16,260 3609
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Target
auth
state: UNCHALLENGED
DEBUG 2014-09-29 10:22:16,260 3609
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Proxy
auth
state: UNCHALLENGED
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> GET http://abc.com/authenticate_proxy1.html HTTP/1.0
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Content-Type: charset=UTF-8
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> User-Agent: TestAgent/WebCrawler
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Language: en-us, en-gb, en;q=0.7, *;q=0.3
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Charset: utf-8, ISO-8859-1;q=0.7, *;q=0.7
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept: text/html, application/xml;q=0.9,
application/xhtml+xml, text/xml;q=0.9, text/plain;q=0.8, image/png,
*/*;q=0.5
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Encoding: x-gzip, gzip
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Host: abc.com
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Proxy-Connection: Keep-Alive
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "GET http://abc.com/authenticate_proxy1.html
HTTP/1.0[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Content-Type: charset=UTF-8[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "User-Agent: TestAgent/WebCrawler[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Language: en-us, en-gb, en;q=0.7,
*;q=0.3[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Charset: utf-8, ISO-8859-1;q=0.7,
*;q=0.7[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept: text/html, application/xml;q=0.9,
application/xhtml+xml, text/xml;q=0.9, text/plain;q=0.8, image/png,
*/*;q=0.5[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Encoding: x-gzip, gzip[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Host: abc.com[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Proxy-Connection: Keep-Alive[\r][\n]"
DEBUG 2014-09-29 10:22:16,261 3610 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "HTTP/1.1 407 Proxy Authentication Required[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Date: Mon, 29 Sep 2014 04:55:41 GMT[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Proxy-Authenticate: Basic realm="Realm1"[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Content-Length: 502[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Connection: close[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Content-Type: text/html; charset=iso-8859-1[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "[\r][\n]"
DEBUG 2014-09-29 10:22:16,584 3933 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<html><head>[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<title>407 Proxy Authentication Required</title>[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "</head><body>[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "
Proxy Authentication Required
[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<p>This server could not verify that you[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "are authorized to access the document[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "requested. Either you supplied the wrong[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "credentials (e.g., bad password), or your[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "browser doesn't understand how to supply[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "the credentials required.</p>[\n]"
DEBUG 2014-09-29 10:22:16,585 3934 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<hr>[\n]"
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<address>Apache/2.0.52 (Red Hat) Server at abc.com Port
80</address>[\n]"
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "</body></html>[\n]"
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << HTTP/1.1 407 Proxy Authentication Required
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Date: Mon, 29 Sep 2014 04:55:41 GMT
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << *Proxy-Authenticate: Basic realm="Realm1"*
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Content-Length: 502
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Connection: close
DEBUG 2014-09-29 10:22:16,586 3935 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Content-Type: text/html; charset=iso-8859-1
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
Authentication
required
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
def.com:80
requested authentication
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.client.ProxyAuthenticationStrategy [pool-1-thread-1]
Authentication schemes in the order of preference: [negotiate, Kerberos,
NTLM, Digest, Basic]
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.client.ProxyAuthenticationStrategy [pool-1-thread-1]
Challenge for negotiate authentication scheme not available
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.client.ProxyAuthenticationStrategy [pool-1-thread-1]
Challenge for Kerberos authentication scheme not available
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.client.ProxyAuthenticationStrategy [pool-1-thread-1]
Challenge for NTLM authentication scheme not available
DEBUG 2014-09-29 10:22:16,586 3935
org.apache.http.impl.client.ProxyAuthenticationStrategy [pool-1-thread-1]
Challenge for Digest authentication scheme not available
DEBUG 2014-09-29 10:22:16,592 3941
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
*Selected
authentication options: [BASIC]*
DEBUG 2014-09-29 10:22:16,592 3941
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
[pool-1-thread-1] http-outgoing-1: Close connection
DEBUG 2014-09-29 10:22:16,592 3941
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Opening
connection {}->http://def.com:80->http://abc.com:80
DEBUG 2014-09-29 10:22:16,592 3941
org.apache.http.conn.HttpClientConnectionManager [pool-1-thread-1]
Connecting to def.com/10.x.x.x:80
DEBUG 2014-09-29 10:22:16,896 4245
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1]
Executing
request GET http://abc.com/authenticate_proxy1.html HTTP/1.0
DEBUG 2014-09-29 10:22:16,896 4245
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Target
auth
state: UNCHALLENGED
DEBUG 2014-09-29 10:22:16,896 4245
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1] Proxy
auth
state: CHALLENGED
DEBUG 2014-09-29 10:22:16,896 4245
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
Generating
response to an authentication challenge using basic scheme
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> GET http://abc.com/authenticate_proxy1.html HTTP/1.0
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Content-Type: charset=UTF-8
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> User-Agent: TestAgent/WebCrawler
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Language: en-us, en-gb, en;q=0.7, *;q=0.3
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Charset: utf-8, ISO-8859-1;q=0.7, *;q=0.7
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept: text/html, application/xml;q=0.9,
application/xhtml+xml, text/xml;q=0.9, text/plain;q=0.8, image/png,
*/*;q=0.5
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Accept-Encoding: x-gzip, gzip
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Host: abc.com
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Proxy-Connection: Keep-Alive
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 >> Proxy-Authorization: Basic AuthenticationString
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "GET http://abc.com/authenticate_proxy1.html
HTTP/1.0[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Content-Type: charset=UTF-8[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "User-Agent: TestAgent/WebCrawler[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Language: en-us, en-gb, en;q=0.7,
*;q=0.3[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Charset: utf-8, ISO-8859-1;q=0.7,
*;q=0.7[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept: text/html, application/xml;q=0.9,
application/xhtml+xml, text/xml;q=0.9, text/plain;q=0.8, image/png,
*/*;q=0.5[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Accept-Encoding: x-gzip, gzip[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Host: abc.com[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "Proxy-Connection: Keep-Alive[\r][\n]"
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> *"Proxy-Authorization: Basic
AuthenticationString[\r][\n]" Here authentication string is passed*
DEBUG 2014-09-29 10:22:16,897 4246 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 >> "[\r][\n]"
DEBUG 2014-09-29 10:22:17,224 4573 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "HTTP/1.1 407 Proxy Authentication Required[\r][\n]"
DEBUG 2014-09-29 10:22:17,224 4573 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Date: Mon, 29 Sep 2014 04:55:41 GMT[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Proxy-Authenticate: Basic realm="Realm1"[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Content-Length: 502[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Connection: close[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "Content-Type: text/html; charset=iso-8859-1[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "[\r][\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<html><head>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<title>407 Proxy Authentication Required</title>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "</head><body>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "
Proxy Authentication Required
[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<p>This server could not verify that you[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "are authorized to access the document[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "requested. Either you supplied the wrong[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "credentials (e.g., bad password), or your[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "browser doesn't understand how to supply[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "the credentials required.</p>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<hr>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "<address>Apache/2.0.52 (Red Hat) Server at abc.com Port
80</address>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.wire
[pool-1-thread-1]
http-outgoing-1 << "</body></html>[\n]"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << HTTP/1.1 407 Proxy Authentication Required
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Date: Mon, 29 Sep 2014 04:55:41 GMT
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Proxy-Authenticate: Basic realm="Realm1"
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Content-Length: 502
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Connection: close
DEBUG 2014-09-29 10:22:17,225 4574 org.apache.http.headers
[pool-1-thread-1]
http-outgoing-1 << Content-Type: text/html; charset=iso-8859-1
DEBUG 2014-09-29 10:22:17,226 4575
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
Authentication
required
DEBUG 2014-09-29 10:22:17,226 4575
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
def.com:80
requested authentication
DEBUG 2014-09-29 10:22:17,226 4575
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
*Authorization
challenge processed*
DEBUG 2014-09-29 10:22:17,226 4575
org.apache.http.impl.auth.HttpAuthenticator [pool-1-thread-1]
*Authentication failed*
DEBUG 2014-09-29 10:22:17,227 4576
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
[pool-1-thread-1] http-outgoing-1: Shutdown connection
DEBUG 2014-09-29 10:22:17,227 4576
org.apache.http.impl.execchain.MainClientExec [pool-1-thread-1]
Connection
discarded
DEBUG 2014-09-29 10:22:17,227 4576
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
[pool-1-thread-1] http-outgoing-1: Close connection
DEBUG 2014-09-29 10:22:17,227 4576
org.apache.http.impl.conn.PoolingHttpClientConnectionManager
[pool-1-thread-1] Connection released: [id: 1][route:
{}->http://def.com:80->http://abc.com:80][total kept alive: 0; route
allocated: 0 of 52; total allocated: 0 of 52]
--
View this message in context:
http://httpcomponents.10934.n7.nabble.com/Basic-Authentication-failing-to-authenticate-the-proxy-tp24500.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]