1 Reply Latest reply on Jan 12, 2012 10:13 PM by SourceSkyBoxer

    FaultEvent statusCode = 0

    Godly_Dev

      I am connecting to an AMF service provided by a PHP application over HTTP.

       

      The connection is made using a RemoteObject and a listener for faults is added:

       

      op.addEventListener(FaultEvent.FAULT, fault);
      
      

       

      And to catch the event:

      private function fault(event:FaultEvent):void{   trace(event.statusCode);
      }
      

       

      The problem is that if I force the server to return an internal server (500) status code in the HTTP header, the trace in the fault() function still displays 0, while I am expecting a 500.

       

      What is causing this and how can I fix it?