Hi people,

I have this code
////////////////////////////////////////////////////    
                Protocol easyhttps = new Protocol("https", new
EasySSLProtocolSocketFactory(), 443);
                 
                 HttpClient client = new HttpClient();
                 client.getHostConfiguration().setHost("www.verisign.net",
443, easyhttps);
                 // use relative url only
                 GetMethod httpget = new GetMethod("/");
                try{
                         client.executeMethod(httpget);
                }catch (java.io.IOException e)
                {
                        System.out.println(e);
                        e.printStackTrace();
                }
            finally {
                // release any connection resources used by the method
                httpget.releaseConnection();
            }
////////////////////////////////////////////////////

This code fails in client.executeMethod with java.net.ConnectException:
Connection refused.

>From my server i can connect to verisign with my netscape. So, it isn't
problem with firewall.
I inspect the traffic with ethereal and i didn't see a connection to
verisign site...

I am with deseperated...
Some ideas?


Thanks
SERGI


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to