Search code examples
actionscript-3httpservice

HTTPService get sent POST body on FaultEvent


Is it possible to get at the data that I sent via a HTTPService Send('I want to get at this data') method when a FaultEvent is raised? Either by looking at the global HTTPService variable or at the FaultEvent object.


Solution

  • Why do I work these things out just after I've asked a question on here :)

      private function httpFault(e:FaultEvent):void {       
         var sentXML:XML = XML(e.token.message.body);       
      }