Browse Source

访问服务修改

新疆警官学校中职
zhangli 1 year ago
parent
commit
9e3507be76
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Learun.Framework.Ultimate V7/VisitService/Service1.cs

+ 2
- 0
Learun.Framework.Ultimate V7/VisitService/Service1.cs View File

@@ -60,6 +60,8 @@ namespace VisitService
{
try
{
System.IO.File.AppendAllText(logPath_timer,
"\r\n" + DateTime.Now + "\r\n开始访问:" + item);
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url);
myRequest.KeepAlive = false;
myRequest.Method = "HEAD"; //设置提交方式可以为"get","head"等


Loading…
Cancel
Save