Click or drag to resize

HtmlFormSubmitRequest Method (String, WebResponseType)

Submits the form, specifying the request data and the expected response type.

Namespace:  NScrape.Forms
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
protected WebResponse SubmitRequest(
	string requestData,
	WebResponseType validType
)

Parameters

requestData
Type: SystemString
Contains the request data in application/x-www-form-urlencoded format.
validType
Type: NScrapeWebResponseType
Contains the expected response type.

Return Value

Type: WebResponse
The response from the server.
Remarks
This overload is convenient for forms that are known to return a specific response type. Requests shall be automatically redirected if necessary.
See Also