W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1999

Re: Client side use of Basic Authentication, proxy.

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 30 Sep 1999 17:38:26 +0200 (MET DST)
To: Steven Camhi <scamhi@yahoo.com>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.10.9909301732280.12146-100000@tarantula.inria.fr>
On Wed, 29 Sep 1999, Steven Camhi wrote:

> A weird question. Sitting behind a firewall
> which requires Basic authentication and a proxy
> to be set (I know, its wrong..), I could never
> get a java (jdk1.2) gui going with the plain
> URL and HttpURLConnection stuff.
> Voila, the jigsaw stuff works like a charm!
> However, if I want to use a JEditorPane component
> in a mini browser environment, it works with URL
> objects which are extremely dumb wrt proxies and
> authorizations. Is it possible to use the JEditorPane
> with the jigsaw stuff?

If you start your application using 

it should use Jigsaw classes (compatible with URLConnection) as its HTTP
stack. To use the proxy, use -DproxyHost=myhost -DproxyPort=myport
Another option is to use directly the internal API, see
org.w3c.jigsaw.proxy.ForwardFrame for a little example.
Hope this helps,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Thursday, 30 September 1999 11:38:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:35 UTC