Welcome Guest, Not a member yet? Register   Sign In
XML-RPC Server using ssl/https?
#2

[eluser]Unknown[/eluser]
ci\system\libraries\Xmlrpc.php need some modifications to work with https/ssl


modify these lines in ci\system\libraries\Xmlrpc.php :
// line 386
$fp = @fsockopen($this->protocol.'://'.$this->server, $this->port,$this->errno, $this->errstr, $this->timeout);

//Line 363
public function __construct($path, $server, $port=80, $protocol='http') {
parent::__construct();
$this->port = $port;
$this->protocol = $protocol;
$this->server = $server;
$this->path = $path;
}

// line 154
function server($url, $port=false){
if (substr($url, 0, 4) != "http") $url = "http://".$url;
$parts = parse_url($url);
if($parts['scheme']=='https'){
$parts['scheme']='ssl';
if($port===false) $port=443;
}
if($port===false) $port=80;
$path = ( ! isset($parts['path'])) ? '/' : $parts['path'];
if (isset($parts['query']) && $parts['query'] != '') {
$path .= '?'.$parts['query'];
}
$this->client = new XML_RPC_Client($path, $parts['host'], $port, $parts['scheme']);
}
// END



Messages In This Thread
XML-RPC Server using ssl/https? - by El Forum - 09-25-2012, 01:56 PM
XML-RPC Server using ssl/https? - by El Forum - 10-16-2013, 12:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB