用万能框架连续请求同一网址时会出现请求头里没有Connection=Keep-Alive。
[C#] 纯文本查看 复制代码 item = new HttpItem()
{
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36",
KeepAlive = true,
URL = siteURL + "/ssid1?url=/",
Method = "GET",
};
item.Header.Add("Accept-Encoding", "gzip, deflate");
item.Header.Add("Accept-Language", "zh-CN,zh;q=0.9");
即使添加了KeepAlive = true也不行。
不知道是什么问题,请大佬们指导!
|