PostWebRequest Constructor (Uri, String) |
Initializes a new instance of the
PostWebRequest class, specifying the destination and request data.
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public PostWebRequest(
Uri destination,
string requestData
)
Public Sub New (
destination As Uri,
requestData As String
)
public:
PostWebRequest(
Uri^ destination,
String^ requestData
)
new :
destination : Uri *
requestData : string -> 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.
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 request = new PostWebRequest( destination, requestData );
See Also