在c#中使用HttpWebRequest时,频繁请求一个网址时,过段时间就会出现“基础连接已经关闭: 接收时发生意外错误”的错误提示。将webRequest的属性设置成下面的,经测试可以解决。System.Net.FtpWebRequest ftp = GetRequest(URI);ftp.KeepAlive = true;KeepAlive设为true即可解决上述问题