自动更新
This commit is contained in:
@@ -13,6 +13,8 @@ namespace GeekDesk.Util
|
||||
#region Get请求
|
||||
public static string Get(string url)
|
||||
{
|
||||
ServicePointManager.Expect100Continue = true;
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
//创建Web访问对 象
|
||||
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url);
|
||||
//通过Web访问对象获取响应内容
|
||||
|
||||
Reference in New Issue
Block a user