Click or drag to resize

PostWebRequest Constructor (Uri, String, String, Boolean)

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

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

Parameters

destination
Type: SystemUri
Specifies the destination of the request.
requestData
Type: SystemString
Contains the request data.
contentType
Type: SystemString
Contains the MIME content type.
autoRedirect
Type: SystemBoolean
true if the request should be automatically redirected; false otherwise.
Remarks
Format the request data per the specified MIME content type.
Examples
var request = new PostWebRequest( new Uri( "http://www.foo.com" ), "data data data", "text/plain", false );
See Also