Skip to main content
Participating Frequently
December 19, 2012
Answered

Server-Side ActionScript - HTTP GET/POST

  • December 19, 2012
  • 2 replies
  • 2273 views

I see that Adobe provides a WebService class to use with Server-Side ActionScript for consuming SOAP services.  I'd like to perform more basic HTTP calls.  It looks like this is potentially possible using XML.send(), but this is limited to POST and sending XML only.

Is there a generic way to make HTTP calls?  I tried using XmlHttpRequest but it appears this isn't included with FMS.

    This topic has been closed for replies.
    Correct answer

    Hi,

    You can use LoadVars class to make HTTP requests on the server side. For more details about LoadVars class, you can check the following link:

    http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7ff7SSASLR.2.3.html

    2 replies

    Known Participant
    October 28, 2014

    @Chandan_Abhishek Can you send form data over HTTP? Can you upload an object to S3 with LoadVars? I tried, and it doesn't look like you can.

    Correct answer
    December 20, 2012

    Hi,

    You can use LoadVars class to make HTTP requests on the server side. For more details about LoadVars class, you can check the following link:

    http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7ff7SSASLR.2.3.html

    N TylerAuthor
    Participating Frequently
    December 20, 2012

    Thanks for your help.  Is it possible to make requests over https with LoadVars?  I tried the following:

    my_lv.load("https://192.168.104.1:8443/etc...");

    This fails silently.  Wireshark shows zero packets with destination port 8443.

    December 20, 2012

    Try editing server.xml configuration file and change <SSLVerifyCertificate> to false. For more details about these tags, you can go through following link:

    http://help.adobe.com/en_US/adobemediaserver/configadmin/WSB283465C-AA74-488c-B3E8-6CAF906CAF0E.2.3.html