Re: question about jsse1.0

Jeff Nisewanger (Jeff.Nisewanger@Eng.Sun.COM)
Wed, 11 Aug 1999 12:10:06 -0700 (PDT)

Message-Id: <199908111911.MAA00389@shorter.eng.sun.com>
Date: Wed, 11 Aug 1999 12:10:06 -0700 (PDT)
From: Jeff Nisewanger <Jeff.Nisewanger@Eng.Sun.COM>
Subject: Re: question about jsse1.0
To: java-security@Sun.COM, twhu@lucent.com

> Please be patient with me because I am new to java and network.
> My current assignment is to get a web page via java programs.
> I know how to get a page via http protocol.
> create a URL, openCOnnection,
> if URLConnection is HttpURLConnection then
> read from URL.openstream

Actually, you don't need to care if the object is an
HttpURLConnection unless you need to call any of the methods
specific to that subclass.

>
> How do I do the similar thing for https?
> I have downloaded jsse1.0, but I do not see any document for
> the HttpsURLConnection class.
> What is the sequences to get the page or post information to
> a page via https? Do I need to check the provider first?

You would do the same thing as for http above except pass in
an https URL instead. Just read the INSTALL and README file links on
the JSSE download page to find out how to configure the JSSE security
provider and the search path for used by the JRE to find the https
URLStreamHandler provided by JSSE.

Jeff