You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
361 B
361 B
C#
Below is an example of making an HTTP request to SITE_NAME from C#.
try
{
using (var client = new System.Net.Http.HttpClient())
{
client.Timeout = System.TimeSpan.FromSeconds(10);
client.GetAsync("PING_URL").Wait();
}
}
catch (System.Exception ex)
{
System.Console.WriteLine($"Ping failed: {ex.Message}");
}