FormSubmitter Class

FormSubmitter class

This class allows to prepare specified HTMLFormElement, collects values from the form element, submit them to the remote server and receives a response.

public class FormSubmitter : IDisposable

Constructors

NameDescription
FormSubmitter(FormEditor)Initializes a new instance of the FormSubmitter class.
FormSubmitter(HTMLFormElement)Initializes a new instance of the FormSubmitter class based on HTMLFormElement.
FormSubmitter(HTMLDocument, int)Initializes a new instance of the FormSubmitter class based on HTMLFormElement selected by index from HTMLDocument.
FormSubmitter(HTMLDocument, String)Initializes a new instance of the FormSubmitter class based on HTMLFormElement selected by identifier from HTMLDocument.

Properties

NameDescription
[getAction]
[setAction] Server-side form handler. See the action attribute definition in HTML 4.01.
[getMethod]
[setMethod] HTTP method [IETF RFC 2616] used to submit form. See the method attribute definition in HTML 4.01.

Methods

NameDescription
dispose()Releases unmanaged and - optionally - managed resources.
submit()Submits the form data to the server.
submit(CookieContainer)Submits the form data to the server with specified cookies.
submit(ICredentials)Submits the form data to the server with specified user credentials.
submit(TimeSpan)Submits the form data to the server with specified timeout.
submit(ICredentials, CookieContainer)Submits the form data to the server with specified user credentials and cookies.
submit(ICredentials, TimeSpan)Submits the form data to the server with specified user credentials and timeout.
submit(TimeSpan, CookieContainer)Submits the form data to the server with specified timeout and cookies.
submit(ICredentials, TimeSpan, bool)Submits the form data to the server with specified user credentials.
submit(ICredentials, TimeSpan, CookieContainer)Submits the form data to the server with specified user credentials, timeout and cookies.
submit(ICredentials, TimeSpan, bool, CookieContainer)Submits the form data to the server with specified user credentials and cookies.

See Also