Yes, I've missed this line:

Protocol.registerProtocol("https", myhttps);

which is mandatory for Java 1.5 and optional for earlier versions.

Thank you.


> -----Original Message-----
> From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 25, 2005 3:49 PM
> To: 'HttpClient User Discussion'
> Subject: Re: SSL
> 
> 
> Milan
> 
> There's a catch to be aware of. You haven't registered your 
> custom protocol socket factory with the Protocol class, have 
> you? For details please take a look at the javadocs of this 
> sample socket factory
> 
http://svn.apache.org/repos/asf/jakarta/commons/proper/httpclient/trunk/
src/contrib/org/apache/commons/httpclient/contrib/ssl/AuthSSLProtocolSoc
ketFactory.java

Hope this helps

Oleg


On Mon, Apr 25, 2005 at 02:34:49PM +0200, Milan Tomic wrote:
> 
> I have noticed that no matter which interface my class implements 
> (ProtocolSocketFactory or deprecated SecureProtocolSocketFactory)
> createSocket() is never called. I'll try to download HttpClient 
> sources and debug.
> 
> Best regards,
> Milan
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to