AnsweredAssumed Answered

[SOLVED]call webscript from dashlet - 401?

Question asked by targa2000 on Feb 16, 2010
Latest reply on Jul 29, 2010 by rafaelscg
trying to call a webscript in the repository from a dashlet and get 401 error

HTTP Status 401 - This request requires HTTP authentication

the webscript itself doesn't require authentication

I've even given a user and password to the url but still I get the same error.

   var connector = remote.connect("alfresco");
   //var data = connector.get("/api/people?filter=" + username);
   //var data = connector.get("/someco/whitepapers");
   //var data = connector.get("/someco/whitepapers?username=admin&password=admin");

   var data = connector.get("/someco/whitepapers.html");
   
   java.lang.System.out.println("data: " + data);

any recommendations?

Outcomes