- From: Yves Lafon <ylafon@w3.org>
- Date: Thu, 28 Jan 1999 14:44:19 +0100 (MET)
- To: Wolfgang Platzer <Wolfgang.Platzer@iaik.tu-graz.ac.at>
- cc: Jigsaw Mailinglist <www-jigsaw@w3.org>
On Thu, 28 Jan 1999, Yves Lafon wrote:
> Here is a sample code to do that:
>
> Base64Encoder encoder = new Base64Encoder(username+":"+password);
> String coded = encoder.processString();
Of course, forget those two lines, I forgot to remove them ;)
>
> HttpCredential credential;
> Base64Encoder encoder;
> credential = HttpFactory.makeCredential("Basic");
> encoder = new Base64Encoder(username+":"+password);
> credential.setAuthParameter("cookie", encoder.processString());
>
> request.setAuthorization(credential);
>
/\ - Yves Lafon - World Wide Web Consortium -
/\ / \ Architecture Domain - Jigsaw Activity Leader
/ \ \/\
/ \ / \ http://www.w3.org/People/Lafon - ylafon@w3.org
Received on Thursday, 28 January 1999 08:44:32 UTC