/// <summary> /// Updates the session request data. /// </summary> public override void UpdateSessionRequestData() { UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs(); args.UpdateType = UpdateSessionRequestType.Form; args.Form = this.Form; this.UpdateSessionRequestEvent(this, args); }
/// <summary> /// Updates the session request data. /// </summary> public override void UpdateSessionRequestData() { if ( postDataItems != null ) { // save here SavePostDataChanges(); UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs(); args.UpdateType = UpdateSessionRequestType.PostData; args.PostData = formConverter.GetString(postDataItems); this.UpdateSessionRequestEvent(this, args); } }
public override void UpdateSessionRequestData() { UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs(); args.UpdateType = UpdateSessionRequestType.Cookies; args.Cookies = GetCookies(); this.UpdateSessionRequestEvent(this, args); }
/// <summary> /// Updates the session request data. /// </summary> public override void UpdateSessionRequestData() { if ( queryStringEditor.Nodes.Count > 0 ) { this.SaveQueryStringChanges(); UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs(); args.UpdateType = UpdateSessionRequestType.QueryString; args.QueryString = formConverter.ConvertQueryHashtable(this.queryDataValues, this.separator, this.pairSeparator); this.txtQueryString.Text = args.QueryString; this.UpdateSessionRequestEvent(this, args); } }
private void queryStringControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e) { if ( e.UpdateType == UpdateSessionRequestType.QueryString ) { if ( this.CurrentSessionRequest is GetSessionRequest ) { GetSessionRequest session = (GetSessionRequest)this.CurrentSessionRequest; session.QueryString = e.QueryString; } } }
private void postDataControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e) { if ( e.UpdateType == UpdateSessionRequestType.PostData ) { if ( this.CurrentSessionRequest is PostSessionRequest ) { PostSessionRequest session = (PostSessionRequest)this.CurrentSessionRequest; session.PostData = e.PostData; } } }
private void formControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e) { if ( e.UpdateType == UpdateSessionRequestType.Form ) { if ( this.CurrentSessionRequest is PostSessionRequest ) { PostSessionRequest session = (PostSessionRequest)this.CurrentSessionRequest; session.Form = e.Form; } } }
private void cookieControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e) { if ( e.UpdateType == UpdateSessionRequestType.Cookies ) { this.CurrentSessionRequest.RequestCookies = e.Cookies; } }