 import mx.messaging.MessageAgent;
 import mx.messaging.MessageResponder;
 import mx.messaging.channels.DirectHTTPChannel;
+import mx.messaging.messages.AbstractMessage;
 import mx.messaging.messages.AcknowledgeMessage;
 import mx.messaging.messages.HTTPRequestMessage;
 import mx.messaging.messages.ErrorMessage;
 import mx.messaging.messages.IMessage;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
+import flash.events.HTTPStatusEvent;
 
 use namespace mx_internal;
 

        msg.correlationId = message.messageId;
        msg.faultCode = "Channel.Security.Error";
        msg.faultString = resourceManager.getString(
			"messaging", "securityError");
        msg.faultDetail = resourceManager.getString(
			"messaging", "securityError.details", [ message.destination ]);
        msg.rootCause = event;
        agent.fault(msg, message);
    }


        ack.clientId = clientId;
        ack.correlationId = message.messageId;
        ack.body = URLLoader(event.target).data;
        ack.headers[AbstractMessage.STATUS_CODE_HEADER] = lastStatus;
        agent.acknowledge(ack, message);
    }

    /**
     *  @private
     */
    public function httpStatusHandler(event:HTTPStatusEvent):void
    {
        lastStatus = event.status;
    }

    /**
     *  Handle a request timeout by closing our associated URLLoader and
     *  faulting the message to the agent.
