Click or drag to resize

PostWebRequest Constructor (Uri, String, Boolean)

Initializes a new instance of the PostWebRequest class, specifying the destination, request data and redirection.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public PostWebRequest(
	Uri destination,
	string requestData,
	bool autoRedirect
)

Parameters

destination
Type: SystemUri
Specifies the destination of the request.
requestData
Type: SystemString
Contains the request data in application/x-www-form-urlencoded format.
autoRedirect
Type: SystemBoolean
true if the request should be automatically redirected; false otherwise.
Remarks
Format the request data per the request's content type (by default, application/x-www-form-urlencoded).
Examples
var destination = new Uri( "http://www.foo.com" );
var requestData = "step=confirmation&rt=L&rp=%2Flogin%2Fhome&p=0&inputEmailHandle=foo&inputPassword=bar";
var autoRedirect = false;

var request = new PostWebRequest( destination, requestData, autoRedirect );
See Also