hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber" <ROLWE...@de.ibm.com>
Subject RE: [Https & proxy] Impossible to connect
Date Thu, 06 Nov 2003 06:09:40 GMT
Folks, this looks like an API error to me. The protocol security
should depend on the actual type of the factory passed to the
constructor, not on the type of the variable it is stored in!

Looking at the code, the only difference is the assignment of
"true" or "false" to the attribute "secure". I suggest to replace
this with an instanceof check in the constructor with the regular

The constructor for the SecureProtocolSocketFactory can
then be dropped, or left as it is for API compatibility.


Samuel BONNANFANT <sbonnanf@yahoo.fr>
05.11.2003 17:31
Please respond to "Commons HttpClient Project"
        To:     Commons HttpClient Project 
        Subject:        RE: [Https & proxy] Impossible to connect

I finally succeed.
I found my error when debugging HttpClient code.

The only error was in my client part, I wrote :
ProtocolSocketFactory protoSocketFact = new
_stPassword, _bVerifServerHostName);

instead of :
StrictSSLProtocolSocketFactory protoSocketFact = new
_stPassword, _bVerifServerHostName);

and then I put :
Protocol myhttps = new Protocol("https",
protoSocketFact, 443);
Protocol.registerProtocol("https", myhttps);

=> The protocole was understood as "non secure"...
Thanks a lot for your help, Oleg & Gl├╝ck !


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message