Skip to main content
Known Participant
December 13, 2013
Question

Call external URL/Webservice from script

  • December 13, 2013
  • 1 reply
  • 1864 views

Hi,

Perhaps a bit leftfield this but is there any method within a AE script (ActionScript) to call a URL to get data? I ask because i've developed a web based management system for a feature and it would be nice if i can script AE to call into it to get various automated job tasks.

thanks

Paul

This topic has been closed for replies.

1 reply

Legend
December 17, 2013
Known Participant
December 17, 2013

That looks along the right lines, thank you for that!

cheers

Paul

Legend
December 17, 2013

Hey Paul,

You can use sockets, but the problem with them is that Extendscript does not support SSL.  I created a workaround a while back that involves using the system.callSystem() method.  Essentially, on OSX you can use the output from a cURL command, and on Windows you can write a VBScript that emulates cURL.  Of course, if you know your API does not use the secure http protocol (https://) you'll be fine with ExtendScript's native socket object.

Check out the long discussion on the topic here:

http://forums.adobe.com/message/5685925

Best,

Arie