* XMLRPC server acting as proxy for requests to other servers
* (useful e.g. for ajax-originated calls that can only connect back to
* the originating server).
+ * For an example of a transparent reverse-proxy, see the ReverseProxy class in package phpxmlrpc/extras
*
* @author Gaetano Giunta
- * @copyright (C) 2006-2020 G. Giunta
+ * @copyright (C) 2006-2021 G. Giunta
* @license code licensed under the BSD License: see file license.txt
*/
-require_once __DIR__ . "/_bootstrap.php";
+require_once __DIR__ . "/_prepend.php";
/**
* Forward an xmlrpc request to another server, and return to client the response received.
/// @todo find a way to forward client info (such as IP) to server, either
/// - as xml comments in the payload, or
/// - using std http header conventions, such as X-forwarded-for...
- $reqMethod = $encoder->decode($req->getParam(1));
+ $reqMethod = $req->getParam(1)->scalarval();
$pars = $req->getParam(2);
$req = new PhpXmlRpc\Request($reqMethod);
foreach ($pars as $par) {
),
)
);
+
+require_once __DIR__ . "/_append.php";