On Mon, 17 Jan 2000, Yang XIAO wrote:

> Hi, there
>
> I wrote an servlet that can connect a http URL, but in reality I want to
> openConnection with a https URL. With the same code, I got err when I tried
> https one:
>
> java.net.MalformedURLException: unknown protocol: https
>         at java.net.URL.<init>(URL.java)
>         at java.net.URL.<init>(URL.java)
>         at TalkPegasus.main(TalkPegasus.java:7)
>
> Anyone's suggestion will be highly appreciated!!

For your servlet to act as an SSL client (which is essentially what
you're doing when you open an https URL), you need some extra classes
to handle that.  This has been discussed on the list somewhat, you
might check the archives.  I believe there were some third party
classes that would do the trick, and there might actually be some from
Sun (and I believe the JWS supported it internally, but that may not
be feasible for you, and I don't know what's the latest on that).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
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