UtilWebGetUrlStatusCodeAsync(Uri) Method

Asynchronously sends a GET request to the specified url and returns the http status code of the server response.

To determine whether the specified url is available / online, call IsUrlAvailable(String) function.

Definition

Namespace: DevCase.Core.Networking.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Task<HttpStatusCode> GetUrlStatusCodeAsync(
	Uri url
)

Parameters

url  Uri
The url.

Return Value

TaskHttpStatusCode
The resulting http status code.

See Also