stdbrouw/Extendables — Issue #17: HTTP basic authentication request
Author: muralikrishna1979
Created: 2011-12-07 14:50:04+00:00
State: open

This is really a good feature to have. I have already tried it to see if that really works or not still :). Below is the code. It does not work as expected :). Could you please let me know when this feature will be available? I am using Extendables with Indesign CS5.5.

Code:
var auth=new Object();
auth.username="admin";
auth.password="admin";
var auth = { username:'admin', password:'admin'};
var response = http.get("http://localhost:4502/content/geometrixx/en/company/news/articles/jcr:content/par/text.html",auth,5);

alert(response.body);
if (response.status_code == 200) {
alert(response.body);
} else {
alert("Connection failed");
}