Calling an HTTPS API from JSX
Hi,
I'm trying to call a HTTP API (which is mine) from InDesign. The API returns JSON and is publicly accessible over HTTPS (HTTP doesn't work!).
Now i tried the GetURL functionality as described in this blogpost (Rorohiko: GetURLs.jsx - access HTTP content from InDesign ExtendScript) and the http.get() from Extendables (http: sending and receiving http requests — Extendables v0.3a documentation)
With both methods HTTP calls work fine but my API requires the call to be over HTTPS and I can't seem to figure out how to do this.
I tried to set the host to e.g. "Host: myendpoint.com:443" but that also doesn't work.
I also have no clue what the culprit is. The Socket error (socket.error) is empty and can't seem to find any other error reporting facilities.
Hope you know what the problem is and how to fix it!
Thanks,
Zeger
