43 require_once
'XML/RPC2/Exception.php';
44 require_once
'XML/RPC2/Util/HTTPRequest.php';
45 require_once
'XML/RPC2/Value.php';
46 require_once
'XML/RPC2/Client.php';
47 require_once
'XML/RPC2/Backend/Php/Request.php';
48 require_once
'XML/RPC2/Backend/Php/Response.php';
98 $request->setParameters($parameters);
99 $request = $request->encode();
102 'encoding' => $this->encoding,
103 'proxy' => $this->proxy,
104 'sslverify' => $this->sslverify
107 $httpRequest->setPostData($request);
108 $httpRequest->sendRequest();
109 $body = $httpRequest->getBody();
117 if (get_class($e)==
'XML_RPC2_FaultException') {
118 print
"XML_RPC2_FaultException #" . $e->getFaultCode() .
" : " . $e->getMessage();
120 print get_class($e) .
" : " . $e->getMessage();