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

HTTP post not working

Community Beginner ,
Jun 21, 2022 Jun 21, 2022

Copy link to clipboard

Copied

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.

TOPICS
How to , Scripting

Views

55

Likes

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
Community Beginner ,
Jun 21, 2022 Jun 21, 2022

Copy link to clipboard

Copied

LATEST

I'm trying to execute the JSX script, it gives the below error.

Error number: 54
Uncaught JavaScript exception: can't connect to localhost:8082

Likes

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