There is is the log:
...
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.useragent = Jakarta Commons-HttpClient/3.0
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.protocol.version = HTTP/1.1
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.connection-manager.class = class
org.apache.commons.httpclient.SimpleHttpConnectionManager
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.protocol.cookie-policy = rfc2109
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.protocol.element-charset = US-ASCII
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.protocol.content-charset = ISO-8859-1
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.method.retry-handler =
[EMAIL PROTECTED]
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.dateparser.patterns = [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]
DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set
parameter http.authentication.preemptive = true
DEBUG [org.apache.commons.httpclient.HttpState] enter
HttpState.setProxyCredentials(AuthScope, Credentials)
DEBUG [org.apache.commons.httpclient.ConnectMethod] enter ConnectMethod()
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Preemptively
sending default basic credentials
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Authenticating
with BASIC <any realm>@myhost:443
DEBUG [org.apache.commons.httpclient.HttpState] enter
HttpState.getCredentials(AuthScope)
WARN [org.apache.commons.httpclient.HttpMethodDirector] Required
credentials not available for BASIC <any realm>@myhost:443
WARN [org.apache.commons.httpclient.HttpMethodDirector] Preemptive
authentication requested but no default credentials available
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Attempt number
1 to process request
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.open()
DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to
myproxy:8080
DEBUG [org.apache.commons.httpclient.ConnectMethod] enter
ConnectMethod.execute(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.execute(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.writeRequest(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.printLine(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "CONNECT myhost:443 HTTP/1.1"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
DEBUG [org.apache.commons.httpclient.ConnectMethod] enter
ConnectMethod.addRequestHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request
header
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase]
HttpMethodBase.addRequestHeader(Header)
DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta
Commons-HttpClient/3.0[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "Host: myhost[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "Proxy-Connection: Keep-Alive[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.flushRequestOutputStream()
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponse(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readStatusLine(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.readLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [httpclient.wire.header] << "HTTP/1.0 407 Proxy Authentication
Required[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.getResponseInputStream()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HeaderParser.parseHeaders(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [httpclient.wire.header] << "Date: Mon, 20 Mar 2006 13:01:35
GMT[\r][\n]"
DEBUG [httpclient.wire.header] << "Content-Length: 3627[\r][\n]"
DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]"
DEBUG [httpclient.wire.header] << "Server: NetCache appliance
(NetApp/6.0.1P1D2)[\r][\n]"
DEBUG [httpclient.wire.header] << "Proxy-Authenticate: Basic
realm="MYREALM"[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseBody(HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.getResponseInputStream()
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.canResponseHaveBody(int)
DEBUG [org.apache.commons.httpclient.ConnectMethod] CONNECT status code 407
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Authorization
required
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] enter
HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor]
Supported authentication schemes in the order of preference: [ntlm,
digest, basic]
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor]
Challenge for ntlm authentication scheme not available
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor]
Challenge for digest authentication scheme not available
INFO [org.apache.commons.httpclient.auth.AuthChallengeProcessor] basic
authentication scheme selected
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Using
authentication scheme: basic
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor]
Authorization challenge processed
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Proxy
authentication scope: BASIC 'MYREALM'@myproxy:8080
DEBUG [org.apache.commons.httpclient.HttpState] enter
HttpState.getProxyCredentials(AuthScope)
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Retry
authentication
DEBUG [httpclient.wire.content] << "<html>[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9]<head>[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9][0x9]<META
HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> [\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9][0x9]<META HTTP-EQUIV="pragma"
CONTENT="no-cache">[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9][0x9]<META HTTP-EQUIV="Expires"
CONTENT="0">[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9][0x9]<title>407</title>[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9]</head>[\r][\n]"
DEBUG [httpclient.wire.content] << "[\r][\n]"
DEBUG [httpclient.wire.content] << "[0x9]<body bgcolor="white"
text="black" link="blue">[\r][\n]"
....
DEBUG [httpclient.wire.content] << "[0x9]</body>[\r][\n]"
DEBUG [httpclient.wire.content] << "</html>[\n]"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] Resorting to
protocol version default close connection policy
DEBUG [org.apache.commons.httpclient.HttpMethodBase] Should close
connection, using HTTP/1.0
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.close()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.closeSockedAndStreams()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.releaseConnection()
DEBUG [org.apache.commons.httpclient.HttpConnection] Connection is
locked. Call to releaseConnection() ignored.
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Authenticating
with BASIC <any realm>@myhost:443
DEBUG [org.apache.commons.httpclient.HttpState] enter
HttpState.getCredentials(AuthScope)
WARN [org.apache.commons.httpclient.HttpMethodDirector] Required
credentials not available for BASIC <any realm>@myhost:443
WARN [org.apache.commons.httpclient.HttpMethodDirector] Preemptive
authentication requested but no default credentials available
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Attempt number
1 to process request
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.open()
DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to
myproxy:8080
DEBUG [org.apache.commons.httpclient.ConnectMethod] enter
ConnectMethod.execute(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.execute(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.writeRequest(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.printLine(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "CONNECT myhost:443 HTTP/1.0"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
DEBUG [org.apache.commons.httpclient.ConnectMethod] enter
ConnectMethod.addRequestHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request
header
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta
Commons-HttpClient/3.0[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "Proxy-Connection: Keep-Alive[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "Host: myhost[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.print(String)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.writeLine()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[])
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.write(byte[], int, int)
DEBUG [httpclient.wire.header] >> "[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.flushRequestOutputStream()
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponse(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readStatusLine(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.readLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [httpclient.wire.header] << "HTTP/1.0 407 Proxy Authentication
Required[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.getResponseInputStream()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HeaderParser.parseHeaders(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readLine(InputStream, String)
DEBUG [org.apache.commons.httpclient.HttpParser] enter
HttpParser.readRawLine()
DEBUG [httpclient.wire.header] << "Date: Mon, 20 Mar 2006 13:01:36
GMT[\r][\n]"
DEBUG [httpclient.wire.header] << "Content-Length: 3627[\r][\n]"
DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]"
DEBUG [httpclient.wire.header] << "Server: NetCache appliance
(NetApp/6.0.1P1D2)[\r][\n]"
DEBUG [httpclient.wire.header] << "Proxy-Authenticate: Basic
realm="MYREALM"[\r][\n]"
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.readResponseBody(HttpConnection)
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.getResponseInputStream()
DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter
HttpMethodBase.canResponseHaveBody(int)
DEBUG [org.apache.commons.httpclient.ConnectMethod] CONNECT status code 407
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Authorization
required
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] enter
HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
java.io.IOException: Connection through proxy could not be opened
at test.KeepCLient.connect2(KeepCLient.java:251)
at test.KeepCLient.main(KeepCLient.java:100)
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor] Using
authentication scheme: basic
DEBUG [org.apache.commons.httpclient.auth.AuthChallengeProcessor]
Authorization challenge processed
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Proxy
authentication scope: BASIC 'MYREALM'@myproxy:8080
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Proxy
credentials required
DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Proxy
credentials provider not available
INFO [org.apache.commons.httpclient.HttpMethodDirector] Failure
authenticating with BASIC 'MYREALM'@myproxy:8080
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.close()
DEBUG [org.apache.commons.httpclient.HttpConnection] enter
HttpConnection.closeSockedAndStreams()
Oleg Kalnichevski wrote:
On Fri, 2006-03-17 at 19:53 +0100, Thierry Sechao wrote:
Thank Alan,
The commons-httpclient-20060307.zip is no more available for download.
I try with commons-httpclient-20060317.zip and I have the same problem.
Here is the test.
ProxyClient proxyClient = new ProxyClient();
proxyClient.getParams().setAuthenticationPreemptive(true) ;
HostConfiguration hostConfiguration =proxyClient.getHostConfiguration();
hostConfiguration.setHost("myhost", 443);
hostConfiguration.setProxy("myproxy", 8080) ;
Credentials userCredential = new UsernamePasswordCredentials("mylogin",
"password") ;
proxyClient.getState().setProxyCredentials(new AuthScope("myproxy",
8080, AuthScope.ANY_REALM), userCredential) ;
ProxyClient.ConnectResponse response = proxyClient.connect();
if (response.getSocket() == null) {
throw new IOException("Connection through proxy could not be opened");
}
This work fine. but if I try to use HTTPS by changing the ligne
hostConfiguration.setHost("myhost", 443);
by
hostConfiguration.setHost("myhost", 443, "https");
or
hostConfiguration.setHost("myhost", 443, new Protocol("https", new
SSLProtocolSocketFactory(), 443));
it does not works anymore: there is a proxy authentification error (2
errors 407) while mode preemptive is activate.
I do not see how this can make a difference as far as the proxy
authentication is concerned. If you post a wire/context of the HTTP
session, I'll take a look at it
Oleg
Any idea?
Alan Yu wrote:
The patch is in commons-httpclient-20060307.zip
-----Original Message-----
From: Thierry Sechao [mailto:[EMAIL PROTECTED]
Sent: March 17, 2006 1:08 PM
To: Apache HTTP Client Mailing List
Subject: https proxy authentication error
Hi,
I have the same problem report by Alan, using ProxyClient.
is the patch available?
Thanks
On Sat, 2006-03-04 at 09:34 -0500, Alan Yu wrote:
> When will the fix be available?
> I don't see the change in
>
http://svn.apache.org/builds/jakarta-commons/nightly/commons-httpclient/comm
> ons-httpclient-src-20060304.zip
>
> Alan
>
Alan,
I'll check the patch in as soon as it gets approved by at least another
committer
Oleg
> -----Original Message-----
> From: Alan Yu [mailto:[EMAIL PROTECTED] > Sent: March 2, 2006 11:41 AM
To: 'HttpClient User Discussion'
> Subject: RE: https proxy authentication error > > I find out that if I
use a MultiThreadedHttpConnectionManager, the second > executeMethod can
return 200 for https site.
> I hope this will give you extra information for your fix.
>
> Alan
>
>
> -----Original Message-----
> From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] > Sent: March 1, 2006
5:38 PM > To: HttpClient User Discussion > Subject: RE: https proxy
authentication error > > On Wed, 2006-03-01 at 17:14 -0500, Alan Yu wrote:
> > What I don't understand is if I run the same code against the http > >
port 8080 on the same proxy server with URL http://www.verisign.com/, > >
the second executeMethod can return 200 OK.
> >
> > Does preemptive authentication have anything to do with whether the >
app is using http or https?
> >
> >
> > Alan
> >
> >
>
> Alan,
> You are likely to have run into the same problem as the one reported >
here:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38818
>
> I'll post a fix tomorrow
>
> 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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]