|  | 
 
| https://security.5173.com/Securi ... /5173MyPayDeduction 这个网址用ie 打开会出现图片2的信息。 
 用代码get 时候 有时候返回的是数据正常的,但是有时候返回的是 图片 1的内容。基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系.
 
 这个是什么问题。请大家给我看下。
 代码
 string html = cj.gethttp("https://security.5173.com/Security/ClientBroker/5173MyPayDeduction", "Get", "", _a.cookie, false, "gb2312");
 
 public string gethttp(string urll, string Gp, string postda, string cook, bool ckjl, string bm)
 {
 string html;
 HttpHelper http = new HttpHelper();
 HttpItem item = new HttpItem()
 {
 Method = Gp,//URL     可选项 默认为Get
 URL = urll,//URL     必需项
 Encoding = System.Text.Encoding.GetEncoding(bm),//URL     可选项 默认为Get
 IsToLower = false,//得到的HTML代码是否转成小写     可选项默认转小写
 Cookie = cook,//字符串Cookie     可选项
 Referer = "",//来源URL     可选项
 // Postdata = postda,//Post数据     可选项GET时不需要写
 Timeout = 100000,//连接超时时间     可选项默认为100000
 ReadWriteTimeout = 30000,//写入Post数据超时时间     可选项默认为30000
 UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",//用户的浏览器类型,版本,操作系统     可选项有默认值
 ContentType = "application/x-www-form-urlencoded", //"text/html",//返回类型    可选项有默认值
 Allowautoredirect = false,//是否根据301跳转     可选项
 //CerPath = "d:\123.cer",//证书绝对路径     可选项不需要证书时可以不写这个参数
 //Connectionlimit = 1024,//最大连接数     可选项 默认为1024
 ProxyIp = "",//代理服务器ID     可选项 不需要代理 时可以不设置这三个参数
 //ProxyPwd = "123456",//代理服务器密码     可选项
 //ProxyUserName = "administrator",//代理服务器账户名     可选项
 };
 HttpResult result = http.GetHtml(item);
 html = result.Html;
 if (ckjl)
 {
 cookie = result.Cookie;
 }
 }
 
 }
 return html;
 }
 
 
 | 
 
  组图打开中,请稍候...... |