• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

post, get, delete, put over https

New Here ,
Sep 04, 2017 Sep 04, 2017

Copy link to clipboard

Copied

Hi

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

Maby i can use the external curl command ??

Thanks

TOPICS
Scripting

Views

2.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 04, 2017 Sep 04, 2017

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 12, 2022 Feb 12, 2022

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2017 Sep 04, 2017

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 12, 2017 Oct 12, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 12, 2017 Oct 12, 2017

Copy link to clipboard

Copied

Hey Kris, long time, no hear!

Thank you for the update!

— Kasyan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 04, 2017 Sep 04, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2017 Sep 04, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2021 Nov 05, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines