Global.helma.Http.setCredentials (username, password)
sets the credentials for basic http authentication

Sourcecode in /home/hannes/helma/modules/helma/Http.js:
85:   this.setCredentials = function(username, password) {
86:           var str = new java.lang.String(username + ":" + password);
87:           credentials = (new Packages.sun.misc.BASE64Encoder()).encode(str.getBytes());
88:           return true;
89:       }