HtmlFormSubmitRequest Method (String, WebResponseType) |
Submits the form, specifying the request data and a range of valid response types.
Namespace:
NScrape.Forms
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax protected WebResponse SubmitRequest(
string requestData,
WebResponseType[] validTypes
)
Protected Function SubmitRequest (
requestData As String,
validTypes As WebResponseType()
) As WebResponse
protected:
WebResponse^ SubmitRequest(
String^ requestData,
array<WebResponseType>^ validTypes
)
member SubmitRequest :
requestData : string *
validTypes : WebResponseType[] -> WebResponse
Parameters
- requestData
- Type: SystemString
Contains the request data in application/x-www-form-urlencoded format. - validTypes
- Type: NScrapeWebResponseType
Contains a list of acceptable response types.
Return Value
Type:
WebResponseThe response from the server.
Remarks
This overload is convenient when multiple response types are possible. Requests shall be automatically redirected if necessary.
See Also