Basic Authentication in Java

Jack Van Keuls writes:
 > I'm interested in building an Applet that acts as an HTTP client which
 > has the ability to perform Basic Authentication.  I have so-far found
 > the
 > JDK 1.1 classes (URL and URLConnection) inadequate to accomplish this.
 > While researching the problem, I ran across the Jigsaw packages, which
 > appear to provide that ability.  However, it's not clear to me from the
 > API documentation what needs to take place.
 > 
 > Is this possible using the w3c.www.http and w3c.www.protocol.http
 > packages, and if so, could anyone provide a simple example?

You may want to check w3c.www.protocol.http.auth which does this
transparently for you (it will even pop the dialog if allwoed)

Anselm.

Received on Friday, 1 August 1997 02:14:16 UTC