  */
 package org.igniterealtime.xiff.core
 {
-	import flash.events.TimerEvent;
+	import flash.events.*;
+	import flash.net.*;
 	import flash.utils.ByteArray;
 	import flash.utils.Timer;
 	import flash.xml.XMLDocument;


		private var responseQueue:Array = [];

		private const responseTimer:Timer = new Timer( 0.0, 1 );

		private var rid:Number;



		private static const HTTP_PORT:int = 7070;

		/**
		 * Keys should match URLRequestMethod constants.
		 */
		private static const headers:Object = {
			"post": [],
			"get": [ 'Cache-Control',
