CodeIgniter Forums
Possible Xmlrpc library bug? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: Possible Xmlrpc library bug? (/showthread.php?tid=62408)



Possible Xmlrpc library bug? - geekita - 07-11-2015

I think that the method name is missing here

PHP Code:
// --> this is the original line // $op = 'POST '.$this->path.' HTTP/1.0'.$r
$op 'POST '.$this->path.'/'.$msg->method_name.' HTTP/1.0'.$r
            
.'Host: '.$this->server.$r
            
.'Content-Type: text/xml'.$r
            
.(isset($this->username$this->password) ? 'Authorization: Basic '.base64_encode($this->username.':'.$this->password).$r '')
            .
'User-Agent: '.$this->xmlrpcName.$r
            
.'Content-Length: '.strlen($msg->payload).$r.$r
            
.$msg->payload

from

PHP Code:
/**
     * Send payload
     *
     * @param    object    $msg
     * @return    object
     */
    
public function sendPayload($msg)
    { 

of Xmlrpc.php library


RE: Possible Xmlrpc library bug? - ciadmin - 07-11-2015

Inside XML_RPC_Message, the createPayload method extracts the method name.


RE: Possible Xmlrpc library bug? - geekita - 07-11-2015

Thanks, I've found the issue. The server controller MUST contain the index function.


RE: Possible Xmlrpc library bug? - ciadmin - 07-11-2015

(07-11-2015, 11:04 PM)geekita Wrote: Thanks, I've found the issue. The server controller MUST contain the index function.

Agreed. The xmlrpc server does request dispatching in the index method.