Skip to main content
Participating Frequently
Dec 19, 2012 5:15 PM UTC
Answered

Server-Side ActionScript - HTTP GET/POST

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 is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Dec 20, 2012 2:08 AM UTC

    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

    7 replies

    Known Participant
    Oct 28, 2014 3:53 PM UTC

    @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.

    Translate
    Correct answer
    Dec 20, 2012 2:08 AM UTC

    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

    Translate
    N TylerAuthor
    Participating Frequently
    Dec 20, 2012 3:36 PM UTC

    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.

    Translate
    Dec 20, 2012 4:06 PM UTC

    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

    Translate