关联摄像头
This commit is contained in:
@@ -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";//链接类型
|
||||
|
||||
Reference in New Issue
Block a user