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
)
Public Sub New (
destination As Uri,
requestData As String,
autoRedirect As Boolean
)
public:
PostWebRequest(
Uri^ destination,
String^ requestData,
bool autoRedirect
)
new :
destination : Uri *
requestData : string *
autoRedirect : bool -> PostWebRequest
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