using Flurl; using Flurl.Http; using Newtonsoft.Json.Linq; using System; namespace OnvifSocketServer { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello World!"); string onvifHttpUrl = AppConfig.GetOnvifHttpUrl(); string onvifHttpsUrl = AppConfig.GetOnvifHttpsUrl(); Console.WriteLine(onvifHttpUrl, onvifHttpsUrl); var baseUri = new Uri(onvifHttpUrl); var absoluteUri = new Uri(baseUri, "onvif/Curd/IsExist"); JObject result = absoluteUri.AbsoluteUri .SetQueryParams(new { ip = "192.168.1.105" }) .GetJsonAsync().Result; Console.WriteLine(result); } } }