On Fri, 2007-10-12 at 01:18 -0700, nzaghini wrote:
> Oleg you win your bet! Thanks million, now it works fine..
> The really last last question is: there is a better way to do this? (i mean
> instead of making the cast):
> 

No, not with HttpClient 3.x. 

Oleg


> EasySSLProtocolSocketFactory epsf = new EasySSLProtocolSocketFactory();
> Protocol easyhttps = new Protocol("https", (ProtocolSocketFactory)epsf,
> 443);
> 
> because the constructor:
> 
> public Protocol(String scheme,
>                 SecureProtocolSocketFactory factory,
>                 int defaultPort) 
> 
> is deprecated..
> 
> Thanks again!
> nicola
> 
> 
> olegk wrote:
> > 
> > On Thu, 2007-10-11 at 09:12 -0700, nzaghini wrote:
> >> Hi Oleg,
> >> this is what you asked me, of course running the same code just changing
> >> protocol and port.
> >> 
> > 
> > Nicola
> > 
> > I bet your EasySSLProtocolSocketFactory does not implement
> > SecureProtocolSocketFactory interface. No wonder HttpClient refuses to
> > send secure cookies over a connection it considers insecure.
> > 
> > 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]

Reply via email to