Skip to main content
Participant
August 6, 2007
Question

HTTPService call from FMS2

  • August 6, 2007
  • 2 replies
  • 279 views
Hey guys,

Im looking for some kind of confirmation that it is indeed impossible to perform a HTTPService Call from Flash Media Server 2.
I know that it is possible to perform SOAP Calls, and i can do that very easily by loading the nessesary components:

load("webservices/WebServices.asc");

Thats great.... but what if i want to perform a POST or GET call to a HTTPService?
This example shows how it could be done on the client side by importing the respective components to it:

import mx.rpc.http.HTTPService
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;

and creating the HTTPService object is a breeze after that:

service:HTTPService = new HTTPService();

BUT! - can this be done on the serverside ? - on FMS2 ? - or is it indeed impossible at the current version?

Hope someone can bring to light to this...

//EoniX


    This topic has been closed for replies.

    2 replies

    Participant
    August 14, 2007
    Just use LoadVars in your server script to do a get / post. It lets you work with plain old HTTP
    August 7, 2007
    Whoops... wrong thread... sorry.