关联摄像头

This commit is contained in:
2023-02-01 16:23:55 +08:00
parent 1d18cfbbf1
commit 9cd1860db1
16 changed files with 829 additions and 69 deletions
+3
View File
@@ -637,6 +637,9 @@ namespace BLL
/// <returns></returns>
public static string CreateGetHttpResponse(string url)
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;//创建请求对象
request.Method = "Get";//请求方式
request.ContentType = "application/x-www-form-urlencoded";//链接类型