Re: Questions about End-user Documentation of the package XML_RPC
| From: | John Downey | Date: | Wed, 28 Jul 2004 22:08:20 +0000 |
| Subject: | Re: Questions about End-user Documentation of the package XML_RPC | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32341@lists.php.net to get a copy of this message | ||
On Wed, 28 Jul 2004 23:51:21 +0200, Jan Jonas <jj@learnbit.de> wrote:
> In the end-user documentation (link:
>
> http://pear.php.net/manual/en/package.webservices.xml-rpc.api.php) i
> read about connecting to a XML_RPC-Server with https
>
> Quote:
>
> $response = $client->send ($xmlrpc_message, $timeout, $server_method)
>
> Where $xmlrpc_message is an instance of XML_RPC_Message and $response is
> an instance of XML_RPC_Response (see XML_RPC_Response).
>
> The $timeout is optional, and will be set to 0 (wait forever) if
> omitted. This timeout value is passed to fsockopen().
> The server_method parameter is optional, and if omitted will default to
> 'http'. The only other valid value is 'https', which will use an SSL
> HTTP connection to connect to the remote server.....
>
> The problem is, that the send-method() doesn't have a third parameter
> $server_method like described in the documentation?! So how can i
> connect to a server with https with the XML_PRC-class?
>
> Regards
> Jan
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
It looks like an error in the documentation from the guys who maintain
the XML_RPC package. As for connectiong to an XML-RPC server using ssl
you could try prefixing the hostname with ssl:// so it would look like
$client = new XML_RPC_Client("/RPC2", "ssl://betty.userland.com", 80);
this has worked since, I believe, PHP 4.3.0 if you have the openssl
module built in or loaded.
--
John Downey
http://www.catdevnull.net