Id like to add on, is there an overall guide to upgrade from 3.x to 4.x? Thanks, -Ryan
On Wed, Jul 21, 2010 at 12:04 PM, arpita k <[email protected]> wrote: > Hi, > > I am using common-httpclient 3.0 and common-ssl 0.3.11 library to establish > SSL communication between client and the server.Here is the code: > > > *AuthSSLProtocolSocketFactory myAuthFactory = null; > try > { > myAuthFactory = new AuthSSLProtocolSocketFactory(new URL("file:" > + KEYSTORE_LOCATION), KEYSTORE_PASSWORD, new URL("file:" > + TRUSTSTORE_LOCATION), TRUSTSTORE_PASSWORD); > > > Protocol myhttps = new Protocol("https", myAuthFactory, > serverPort); > Protocol.registerProtocol("https", myhttps); > signClient.getHostConfiguration().setHost(serverName, > serverPort, > myhttps); > signClient.getParams().setCookiePolicy(CookiePolicy.RFC_2109); > > * > The AuthSSLProtocolSocketFactory is part of common-ssl library. > Now I need to upgrade the httpclient from 3.0 to 4.0.But I want to use the > AuthSSLProtocolSocketFactory factory as it is doin gCRL check > automatically. > > I know that the schem is replaced by the Protocol of httpclient 4.0.But I > don't think it could take AuthSSLProtocolSocketFactory as a parameter.So, > which way I should proceed? > > Please help me to upgrade the httpclient. > > Thanks in advance!! > > Arpita >
