title: HTTP Request from WebScript in Alfresco
body: <p>I'm writing a WebScript in Alfresco using JS controller and I want to make a HTTP request to the local HTTP resource. This resource is a Java-based app and gives me its own REST API.</p>
  
  <p>My WebScript is not a Share Component: so I don't have a <code>remote</code> object to call another webscript.</p>
  
  <p>How can I make a HTTP request to the local resource (something like '/sdo/documents/getName?type=fl') from a WebScript?</p>