WebClientSendRequest Method (Uri) |
Sends a GET request.
Namespace:
NScrape
Assembly:
NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax public WebResponse SendRequest(
Uri destination
)
Public Function SendRequest (
destination As Uri
) As WebResponse
public:
virtual WebResponse^ SendRequest(
Uri^ destination
) sealed
abstract SendRequest :
destination : Uri -> WebResponse
override SendRequest :
destination : Uri -> WebResponse
Parameters
- destination
- Type: SystemUri
Specifies the destination of the request.
Return Value
Type:
WebResponseThe response from the server.
Implements
IWebClientSendRequest(Uri)Remarks
Sends a GET request that 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 ) ) {
}
See Also