织梦采集https链接时却生成http协议请求的解决办法

栏目:DedeCMS 来源:网络 关注:0 时间:2019-08-16

dedecms:采集https链接时却生成http协议请求的解决办法

织梦CMS采集https链接时出错,dedecms采集https链接时却生成了http协议请求,我们可以通过修改include/dedehtml2.class.php文件解决。
操作步骤:
1、增加var $Scheme;,如图:
织梦CMS采集https链接时出错

2、在构造函数中增加$this->Scheme = 'http://'; ,如图:
织梦CMS采集https链接时出错

3、在SetSource()函数内增加$this->Scheme = $urls['scheme'] . '://'; ,如图:
织梦CMS采集https链接时出错

4、将FillUrl()函数内的return 'http://'.$okurl;修改为return $this->Scheme . $okurl;如图:
织梦CMS采集https链接时出错

本文标题:织梦采集https链接时却生成http协议请求的解决办法
本文地址:http://www.q0738.com/dedecms/1177.html