Skip to main content
Participating Frequently
Sep 4, 2017 7:06 AM UTC
Question

post, get, delete, put over https

Hi

Can I access to Rest Api over https using indesign javascript.

Maby i can use the external curl command ??

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Participating Frequently
Sep 4, 2017 7:47 AM UTC

I have been trying for a long time. Now i decide to run external curl command When i finish it i write about it on this forum

Translate
Participant
Nov 5, 2021 2:05 PM UTC

But I suspect curl command cannot able to accept some special characters in messages

Translate
Loic.Aigon
Legend
Sep 4, 2017 7:45 AM UTC

I can't say for sure. Give this a try.

Translate
Participating Frequently
Sep 4, 2017 7:33 AM UTC

Ok

Are you sure that i can access to api via https using socket object (in indesign 5.5 i can use only http protocol)

Translate
Inspiring
Oct 12, 2017 9:01 PM UTC

Note: I've re-done GetURL ; this blog posts explains how to also support https. Only works in more recent versions...

http://coppieters.nz/?p=133

Translate
Kasyan Servetsky
Legend
Oct 12, 2017 10:08 PM UTC

Hey Kris, long time, no hear!

Thank you for the update!

— Kasyan

Translate
Loic.Aigon
Legend
Sep 4, 2017 7:26 AM UTC

You may want to use at the socket object. See chapter 6 on page 194 of the JavaScript Tools Guide CC.pdf (can be found from ExtendScript ToolKit via help menu).

Or you may want to use easier tools such as getUrl from Rorohiko:

Rorohiko: GetURLs.jsx - access HTTP content from InDesign ExtendScript

Or IDExtenso from InDiscripts

GitHub - indiscripts/IdExtenso: ExtendScript Framework for InDesign Ninjas

Both latter make accessing http url simplier.

Translate
Sunil Yadav
Legend
Feb 12, 2022 7:06 PM UTC

This is a great information, i think it will help a lot of people.

Translate