git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80a0706
)
update demos to avoid access to private client properties
author
gggeek
<giunta.gaetano@gmail.com>
Wed, 1 Feb 2023 17:25:05 +0000
(17:25 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Wed, 1 Feb 2023 17:25:05 +0000
(17:25 +0000)
demo/client/introspect.php
patch
|
blob
|
history
diff --git
a/demo/client/introspect.php
b/demo/client/introspect.php
index
8349dd1
..
17dfe11
100644
(file)
--- a/
demo/client/introspect.php
+++ b/
demo/client/introspect.php
@@
-25,7
+25,7
@@
$client = new Client(XMLRPCSERVER);
$client->setOption(Client::OPT_RETURN_TYPE, XMLRPCParser::RETURN_PHP);
// First off, let's retrieve the list of methods available on the remote server
-output("<h3>methods available at http://" . $client->
server . $client->path
. "</h3>\n");
+output("<h3>methods available at http://" . $client->
getUrl(PHP_URL_HOST) . $client->getUrl(PHP_URL_PATH)
. "</h3>\n");
$req = new Request('system.listMethods');
$resp = $client->send($req);