Douglas Ferguson wrote:
I did read that page, but I ran into a couple of issues.
1) This is deprecated: Protocol.registerProtocol("myhttps",
new Protocol("https", new MySSLSocketFactory(), 9443));
Cast your custom socket factory to ProtocolSocketFactory. Though, make
sure it implements SecureProtocolSocketFactory.
new Protocol("https", (ProtocolSocketFactory) new MySSLSocketFactory(),
9443)
2) I wasn't sure which factory I should be using.
SecureProtocolSocketFactory
3) Is the contribution package avaible through a maven repository?
No, it is not. Contrib code is distributed as source only
I'm using commons version HttpClient.
Upgrade to HttpClient 4.0. The 3.x branch is nearing end of life.
Oleg
On Sep 27, 2009, at 1:18 PM, Tobias N. Sasse wrote:
Douglas Ferguson schrieb:
I have been unsuccessful in finding information on how to setup
HttpClient to retrieve random https:// pages.
Does anybody know how to do this
You should look at the following pages:
http://hc.apache.org/httpclient-3.x/sslguide.html (version 3)
http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e484
HTH,
Tobi
---------------------------------------------------------------------
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]