Skip to main content
Participating Frequently
December 19, 2012
解決済み

Server-Side ActionScript - HTTP GET/POST

  • December 19, 2012
  • 返信数 2.
  • 2282 ビュー

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.

    このトピックへの返信は締め切られました。
    解決に役立った回答

    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

    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.

    解決!
    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 Tyler作成者
    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