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

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

					data = createRequest( temp );
				}
			}
			/*
			var req:URLRequest = new URLRequest(httpServer);
			req.method = URLRequestMethod.POST;
			req.contentType = "text/xml";
			req.requestHeaders = headers[ req.method ];
			req.data = data;
			var loader:URLLoader = new URLLoader();
			loader.dataFormat = URLLoaderDataFormat.TEXT;
			loader.addEventListener(Event.COMPLETE, onRequestComplete);
			loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, socketSecurityError);
			loader.addEventListener(IOErrorEvent.IO_ERROR, socketIOError);
			loader.load(req);
			*/
			
			// TODO: Could this be replaced with URLLoader ?
			//build the http request
