- $this->__request->setContentType("text/xml; charset=". $this->__encoding);
- $request = xmlrpc_encode_request($method, $params, array("encoding" => $this->__encoding));
- $this->__request->setRawPostData($request);
- $this->__request->send();
- $response = $this->__request->getResponseMessage();
+ $this->__request->setContentType("text/xml");
+ $this->__request->setRawPostData(
+ xmlrpc_encode_request($method, $params,
+ array("encoding" => $this->__encoding) + (array) $this->__options));
+ $response = $this->__request->send();