/// <summary>
        /// Adds a PostSesionRequest to a recording session.
        /// </summary>
        /// <param name="url"> The requested url.</param>
        /// <param name="postData"> The post data in bytes.</param>
        /// <param name="form"> The post form.</param>
        /// <param name="cookies"> The current cookies.</param>
        private void AddSessionPost(string url, string postData, HtmlFormTag form, CookieCollection cookies)
        {
            if ( IsRecording )
            {
                PostSessionRequest postSessionRequest = new PostSessionRequest();
                postSessionRequest.PostData = postData;
                if ( form != null )
                {
                    postSessionRequest.Form = form.CloneTag();
                }
                postSessionRequest.RequestCookies = cookies;
                postSessionRequest.Url = new Uri(url);
                postSessionRequest.RequestHttpSettings = this.ClientProperties.Clone();

                this.CurrentSessionRecording.SessionRequests.Add(postSessionRequest);
            }
        }
        /// <summary>
        /// Adds a GetSessionRequest to a recording session.
        /// </summary>
        /// <param name="url"> The requested url.</param>
        /// <param name="queryString"> The url query string.</param>
        /// <param name="form"> The get form.</param>
        /// <param name="cookies"> The current cookies.</param>
        private void AddSessionGet(string url, string queryString, HtmlFormTag form, CookieCollection cookies)
        {
            if ( IsRecording )
            {
                GetSessionRequest getSessionRequest = new GetSessionRequest();
                if ( form != null )
                {
                    getSessionRequest.Form = form.CloneTag();
                }
                getSessionRequest.QueryString = queryString;
                getSessionRequest.RequestCookies = cookies;
                getSessionRequest.Url = new Uri(url);
                getSessionRequest.RequestHttpSettings = this.ClientProperties.Clone();

                this.CurrentSessionRecording.SessionRequests.Add(getSessionRequest);
            }
        }