|
使用过程中发现这个网址怎么都不行,提示 基础连接已经关闭: 发送时发生错误。
代码如下:
HttpHelper helper = new HttpHelper();
HttpItem item = new HttpItem
{
URL = "https://www.ct10649.com:/ecportal/login/logout.action#",
Encoding = null,
Method = "get",
Timeout = 0x2710,
ReadWriteTimeout = 0x2710,
UserAgent = "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko)",
ContentType = "application/x-www-form-urlencoded; charset=UTF-8",
Referer = "https://www.ct10649.com:4821/ecportal/device/toList.action",
Allowautoredirect = true,
CerPath = AppDomain.CurrentDomain.BaseDirectory + @"\10649.cer",
Connectionlimit = 0x400,
};
string html = helper.GetHtml(item).Html;
返回:基础连接已经关闭: 发送时发生错误。
恳请协助
|
|