Trying to do an https get to an authenticated web site via ECMA. Getting
this message back:

ReferenceError: "javax" is not defined solution

Can't I just load any old java class from ECMA?

================================================== ======

function httpGet(urlString, B64Auth)
{
importPackage(Packages.javax.net.ssl);

try
{
var url = new java.net.URL(String(urlString));
var uc = url.openConnection();
uc.setRequestProperty ("Authorization", "Basic "+B64Auth);

var ssl = new javax.net.ssl.HttpsURLConnection(uc);

var stream = url.openStream();
var reader = new java.io.InputStreamReader(stream, "UTF-8");
var sb = new java.lang.StringBuilder();

var c;
while ((c = reader.read()) != -1)
{
sb.append(String.fromCharCode(c));
}
return sb.toString();
}
catch(e)
{
return e.toString();
}
}


--
Robert Rawson
Subject Area Master - Identity and Access Management
------------------------------------------------------------------------
rrawson's Profile: http://forums.novell.com/member.php?userid=4898
View this thread: http://forums.novell.com/showthread.php?t=432026