Hi, there

The following java code can be run on workstation without problem but on a
winnt, when call java TalkPega "https://..." an error message:
Exception in thread "main" java.net.SocketException: SSL implementation not
available

Can anyone please tell me why?

thanks
Stella

import java.io.*;
import java.net.*;
import java.security.*;
import javax.net.ssl.*;
import com.sun.net.ssl.*;

public class TalkPega {
    public static void main(String[] args) throws Exception {

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
        if (args.length != 1) {
            System.exit(1);
        }

        String pegUrl = args[0];

        URL url = new URL(pegUrl);
        URLConnection connection = url.openConnection();

        BufferedReader in = new BufferedReader(new InputStreamReader(
                                            connection.getInputStream()));
        String pegReturn;

        // then write the response
        while ((pegReturn = in.readLine()) != null)
            System.out.println("Pegasus Response: " + pegReturn);
        in.close();
    }
}
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to