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