- examples fixup
[m6w6/ext-http] / docs / examples / KISS_XMLRPC_Client.php
index b9e955b6e969f5ae7dd30fafce80d2d6272d1bdf..ac7498d611caa9f87d6fd2af5a5de2eb7c89e497 100644 (file)
@@ -26,7 +26,7 @@ class XmlRpcClient
                if ($this->namespace) {
                        $method = $this->namespace .'.'. $method;
                }
                if ($this->namespace) {
                        $method = $this->namespace .'.'. $method;
                }
-               $this->request->setPostData(xmlrpc_encode_request($method, $params));
+               $this->request->setRawPostData(xmlrpc_encode_request($method, $params));
                $response = $this->request->send();
                if ($response->getResponseCode() != 200) {
                        throw new Exception($response->getBody(), $response->getResponseCode());
                $response = $this->request->send();
                if ($response->getResponseCode() != 200) {
                        throw new Exception($response->getBody(), $response->getResponseCode());