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
)
Protected Function SubmitRequest (
requestData As String,
validType As WebResponseType
) As WebResponse
protected:
WebResponse^ SubmitRequest(
String^ requestData,
WebResponseType validType
)
member SubmitRequest :
requestData : string *
validType : WebResponseType -> WebResponse
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:
WebResponseThe 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