/// <summary>
 /// Add url request to session request list.
 /// </summary>
 /// <param name="requests"> The SessionRequestList.</param>
 /// <param name="url"> The url.</param>
 private void AddUrlRequest(SessionRequestList requests, string url)
 {
     if ( url.StartsWith("http") )
     {
         GetSessionRequest getSessionRequest = new GetSessionRequest();
         getSessionRequest.QueryString = url;
         getSessionRequest.RequestCookies = getForm.CookieManager.GetCookies(new Uri(url));
         getSessionRequest.Url = new Uri(url);
         getSessionRequest.RequestHttpSettings = this.ClientProperties.Clone();
         requests.Add(getSessionRequest);
     }
 }
        /// <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);
            }
        }