How can I access the HTTP response body when a web services call fails and my "fault" event listener is call? I can see the original message but can't find a way to access the response.
Here's how I call the webservice
var connect: HTTPService = new HTTPService;
connect.url = "https://app.XYZ.org/services/code?format=xml";
connect.method = "POST";
connect.contentType = "application/x-www-form-urlencoded";
connect.showBusyCursor = true;
connect.resultFormat = "xml";
connect.addEventListener("result", retrieveResults);
connect.addEventListener("fault", retrieveResults);
var params:Object = new Object;
params.username = user;
params.password = password;
params.code = "123";
connect.request = params;
connect.send();
and my event handler function
private function retrieveResults(event:Event): void
{
var success:Boolean = event.type == ResultEvent.RESULT;
..
}