Question
HTTP post not working
Hi All,
I tried to call the API through JSX script using http.jsx library.
The below is my code to execute the URL.
#include "http.jsx"
// POST example
var data = $http({
method: 'POST',
url: 'http://localhost:8082/font?moduleAddress=host.com:8082&filePath=C:\Users\user\Desktop\test.indd'
});
alert(data);
Could anyone correct me if I did anything wrong in the above code.
Thanks.
