WebClientSendRequest Method (Uri, Boolean) |
Sends a GET request, specifying redirection.
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public WebResponse SendRequest(
Uri destination,
bool autoRedirect
)
Public Function SendRequest (
destination As Uri,
autoRedirect As Boolean
) As WebResponse
public:
virtual WebResponse^ SendRequest(
Uri^ destination,
bool autoRedirect
) sealed
abstract SendRequest :
destination : Uri *
autoRedirect : bool -> WebResponse
override SendRequest :
destination : Uri *
autoRedirect : bool -> WebResponse
Parameters
- destination
- Type: SystemUri
Specifies the destination of the request. - autoRedirect
- Type: SystemBoolean
true if the request should be automatically redirected; false otherwise.
Return Value
Type:
WebResponseThe response from the server.
Implements
IWebClientSendRequest(Uri, Boolean)Remarks
Sends a GET request, specifying whether the request shall be automatically redirected if applicable.
Examples var webClient = new WebClient();
var uri = new Uri( "http://www.foo.com" );
using ( var response = webClient.SendRequest( uri, false ) ) {
}
See Also