/// <summary>
        /// Occurs when a response is received
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected virtual void OnResponseReceived(object sender, HttpResponseEventArgs e)
        {
            try
            {
//				// trace the response
//				if (!_isServerSideConnection)
//				{
//					Debug.WriteLine(string.Format("User-Agent connection '{0}' auto-logging response '{1}'", _id.ToString(), HttpUtils.StripCRLF(e.Response.FirstLine)), MY_TRACE_CATEGORY);
//					Debug.WriteIf(_verbose, e.Response.ToString(false));
//				}
//				else
//				{
//					Debug.WriteLine(string.Format("Server-Side connection '{0}' auto-logging response '{1}'", _id.ToString(), HttpUtils.StripCRLF(e.Response.FirstLine)), MY_TRACE_CATEGORY);
//					Debug.WriteIf(_verbose, e.Response.ToString(false));
//				}
//
//				// if the response is bad, trace the message body
//				if (!HttpUtils.Succeeded(e.Response))
//                    Debug.WriteLine(e.Response.GetBodyAsString(HttpUtils.Encoding));
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
        }
		/// <summary>
		/// Occurs when a response is received
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected virtual void OnResponseReceived(object sender, HttpResponseEventArgs e)
		{
			try
			{
//				// trace the response
//				if (!_isServerSideConnection)
//				{
//					Debug.WriteLine(string.Format("User-Agent connection '{0}' auto-logging response '{1}'", _id.ToString(), HttpUtils.StripCRLF(e.Response.FirstLine)), MY_TRACE_CATEGORY);
//					Debug.WriteIf(_verbose, e.Response.ToString(false));
//				}
//				else
//				{
//					Debug.WriteLine(string.Format("Server-Side connection '{0}' auto-logging response '{1}'", _id.ToString(), HttpUtils.StripCRLF(e.Response.FirstLine)), MY_TRACE_CATEGORY);
//					Debug.WriteIf(_verbose, e.Response.ToString(false));
//				}
//				
//				// if the response is bad, trace the message body
//				if (!HttpUtils.Succeeded(e.Response))
//                    Debug.WriteLine(e.Response.GetBodyAsString(HttpUtils.Encoding));
			}
			catch(Exception ex)
			{
				Debug.WriteLine(ex);
			}
		}