This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/thirdparty/xmlrpc-2.2/doc/ch02s06.html

3 lines
7.8 KiB
HTML
Raw Normal View History

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>6.&nbsp;2.0 Release candidate 1</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="XML-RPC for PHP"><link rel="up" href="ch02.html" title="Chapter&nbsp;2.&nbsp;What's new"><link rel="prev" href="ch02s05.html" title="5.&nbsp;2.0 Release candidate 2"><link rel="next" href="ch03.html" title="Chapter&nbsp;3.&nbsp;System Requirements"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">6.&nbsp;2.0 Release candidate 1</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s05.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;2.&nbsp;What's new</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch03.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e381"></a>6.&nbsp;2.0 Release candidate 1</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>Support for HTTP proxies (new method: <code class="code">xmlrpc_client::setProxy()</code>)</p></li><li><p>Support HTTP compression of both requests and responses. Clients can specify what kind of compression they accept for responses between deflate/gzip/any, and whether to compress the requests. Servers by default compress responses to clients that explicitly declare support for compression (new methods: <code class="code">xmlrpc_client::setAcceptedCompression()</code>, <code class="code">xmlrpc_client::setRequestCompression()</code>). Note that the ZLIB php extension needs to be enabled in PHP to support compression.</p></li><li><p>Implement HTTP 1.1 connections, but only if CURL is enabled (added an extra parameter to <code class="code">xmlrpc_client::xmlrpc_client</code> to set the desired HTTP protocol at creation time and a new supported value for the last parameter of <code class="code">xmlrpc_client::send</code>, which now can be safely omitted if it has been specified at creation time)</p><p>With PHP versions greater than 4.3.8 keep-alives are enabled by default for HTTP 1.1 connections. This should yield faster execution times when making multiple calls in sequence to the same xml-rpc server from a single client.</p></li><li><p>Introduce support for cookies. Cookies to be sent to the server with a request can be set using <code class="code">xmlrpc_client::setCookie()</code>, while cookies received from the server are found in <code class="code">xmlrpcresp::cookies()</code>. It is left to the user to check for validity of received cookies and decide whether they apply to successive calls or not.</p></li><li><p>Better support for detecting different character set encodings of xml-rpc requests and responses: both client and server objects will correctly detect the charset encoding of received xml, and use an appropriate xml parser.</p><p>Supported encodings are US-ASCII, UTF-8 and ISO-8859-1.</p></li><li><p>Added one new xmlrpcmsg constructor syntax, allowing usage of a single string with the complete URL of the target server</p></li><li><p>Convert xml-rpc boolean values into native php values instead of 0 and 1</p></li><li><p>Force the <code class="code">php_xmlrpc_encode</code> function to properly encode numerically indexed php arrays into xml-rpc arrays (numerically indexed php arrays always start with a key of 0 and increment keys by values of 1)</p></li><li><p>Prevent the <code class="code">php_xmlrpc_encode</code> function from further re-encoding any objects of class <code class="code">xmlrpcval</code> that are passed to it. This allows to call the function with arguments consisting of mixed php values / xmlrpcval objects.</p></li><li><p>Allow a server to NOT respond to system.* method calls (setting the <code class="code">$server-&gt;allow_system_funcs</code> property).</p></li><li><p>Implement a new xmlrpcval method to determine if a value of