IWebClientSendRequest Method (Uri, String) |
Sends a POST request.
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax WebResponse SendRequest(
Uri destination,
string requestData
)
Function SendRequest (
destination As Uri,
requestData As String
) As WebResponse
WebResponse^ SendRequest(
Uri^ destination,
String^ requestData
)
abstract SendRequest :
destination : Uri *
requestData : string -> WebResponse
Parameters
- destination
- Type: SystemUri
Specifies the destination of the request. - requestData
- Type: SystemString
Contains the request data in application/x-www-form-urlencoded format.
Return Value
Type:
WebResponseThe response from the server.
Return Value
Type:
WebResponseThe response from the server.
Remarks
Sends a POST request that shall be automatically redirected if applicable.
Examples var webClient = new WebClient();
var uri = new Uri( "http://www.foo.com" );
var data = "step=confirmation&rt=L&rp=%2Flogin%2Fhome&p=0&inputEmailHandle=foo&inputPassword=bar";
using ( var response = webClient.SendRequest( uri, data ) ) {
}
See Also