Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct ($path, $server='', $port='', $method='') | |
multicall ($reqs, $timeout=0, $method='', $fallback=true) | |
send ($req, $timeout=0, $method='') | |
setAcceptedCompression ($compMethod) | |
setCaCertificate ($caCert, $isDir=false) | |
setCertificate ($cert, $certPass) | |
setCookie ($name, $value='', $path='', $domain='', $port=null) | |
setCredentials ($u, $p, $t=1) | |
SetCurlOptions ($options) | |
setDebug ($in) | |
setKey ($key, $keyPass) | |
setProxy ($proxyHost, $proxyPort, $proxyUsername='', $proxyPassword='', $proxyAuthType=1) | |
setRequestCompression ($compMethod) | |
setSSLVerifyHost ($i) | |
setSSLVerifyPeer ($i) | |
setSSLVersion ($i) | |
SetUserAgent ($agentString) | |
Data Fields | |
$accepted_charset_encodings = array() | |
$accepted_compression = array() | |
$authtype = 1 | |
$cacert = '' | |
$cacertdir = '' | |
$cert = '' | |
$certpass = '' | |
$cookies = array() | |
$debug = 0 | |
$errno | |
$errstr | |
$extracurlopts = array() | |
$keepalive = false | |
$key = '' | |
$keypass = '' | |
$method = 'http' | |
$no_multicall = false | |
$password = '' | |
$path | |
$port = 0 | |
$proxy = '' | |
$proxy_authtype = 1 | |
$proxy_pass = '' | |
$proxy_user = '' | |
$proxyport = 0 | |
$request_charset_encoding = '' | |
$request_compression = '' | |
$return_type = 'xmlrpcvals' | |
$server | |
$sslversion = 0 | |
$user_agent | |
$username = '' | |
$verifyhost = 2 | |
$verifypeer = true | |
$xmlrpc_curl_handle = null | |
Protected Member Functions | |
sendPayloadCURL ($req, $server, $port, $timeout=0, $username='', $password='', $authType=1, $cert='', $certPass='', $caCert='', $caCertDir='', $proxyHost='', $proxyPort=0, $proxyUsername='', $proxyPassword='', $proxyAuthType=1, $method='https', $keepAlive=false, $key='', $keyPass='', $sslVersion=0) | |
sendPayloadHTTP10 ($req, $server, $port, $timeout=0, $username='', $password='', $authType=1, $proxyHost='', $proxyPort=0, $proxyUsername='', $proxyPassword='', $proxyAuthType=1, $method='http') | |
sendPayloadHTTPS ($req, $server, $port, $timeout=0, $username='', $password='', $authType=1, $cert='', $certPass='', $caCert='', $caCertDir='', $proxyHost='', $proxyPort=0, $proxyUsername='', $proxyPassword='', $proxyAuthType=1, $keepAlive=false, $key='', $keyPass='', $sslVersion=0) | |
Definition at line 7 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::__construct | ( | $path, | |
$server = '' , |
|||
$port = '' , |
|||
$method = '' |
|||
) |
string | $path | either the complete server URL or the PATH part of the xmlrc server URL, e.g. /xmlrpc/server.php |
string | $server | the server name / ip address |
integer | $port | the port the server is listening on, defaults to 80 or 443 depending on protocol used |
string | $method | the http protocol variant: defaults to 'http', 'https' and 'http11' can be used if CURL is installed |
Definition at line 86 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::multicall | ( | $reqs, | |
$timeout = 0 , |
|||
$method = '' , |
|||
$fallback = true |
|||
) |
Send an array of requests and return an array of responses. Unless $this->no_multicall has been set to true, it will try first to use one single xmlrpc call to server method system.multicall, and revert to sending many successive calls in case of failure. This failure is also stored in $this->no_multicall for subsequent calls. Unfortunately, there is no server error code universally used to denote the fact that multicall is unsupported, so there is no way to reliably distinguish between that and a temporary failure. If you are sure that server supports multicall and do not want to fallback to using many single calls, set the fourth parameter to FALSE.
NB: trying to shoehorn extra functionality into existing syntax has resulted in pretty much convoluted code...
Request[] | $reqs | an array of Request objects |
integer | $timeout | connection timeout (in seconds) |
string | $method | the http protocol variant to be used |
boolean | fallback When true, upon receiving an error during multicall, multiple single calls will be attempted |
Definition at line 917 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::send | ( | $req, | |
$timeout = 0 , |
|||
$method = '' |
|||
) |
Send an xmlrpc request.
Request | Request[] | string | $req | The Request object, or an array of requests for using multicall, or the complete xml representation of a request |
integer | $timeout | Connection timeout, in seconds, If unspecified, a platform specific timeout will apply |
string | $method | if left unspecified, the http protocol chosen during creation of the object will be used |
Definition at line 356 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
|
protected |
Contributed by Justin Miller justi Requires curl to be built into PHP NB: CURL versions before 7.11.10 cannot use proxy to talk to https servers! n@vo xel.n et
Request | $req | |
string | $server | |
int | $port | |
int | $timeout | |
string | $username | |
string | $password | |
int | $authType | |
string | $cert | |
string | $certPass | |
string | $caCert | |
string | $caCertDir | |
string | $proxyHost | |
int | $proxyPort | |
string | $proxyUsername | |
string | $proxyPassword | |
int | $proxyAuthType | |
string | $method | |
bool | $keepAlive | |
string | $key | |
string | $keyPass | |
int | $sslVersion |
Definition at line 676 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
|
protected |
Request | $req | |
string | $server | |
int | $port | |
int | $timeout | |
string | $username | |
string | $password | |
int | $authType | |
string | $proxyHost | |
int | $proxyPort | |
string | $proxyUsername | |
string | $proxyPassword | |
int | $proxyAuthType | |
string | $method |
Definition at line 459 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
References $op.
|
protected |
Request | $req | |
string | $server | |
int | $port | |
int | $timeout | |
string | $username | |
string | $password | |
int | $authType | |
string | $cert | |
string | $certPass | |
string | $caCert | |
string | $caCertDir | |
string | $proxyHost | |
int | $proxyPort | |
string | $proxyUsername | |
string | $proxyPassword | |
int | $proxyAuthType | |
bool | $keepAlive | |
string | $key | |
string | $keyPass | |
int | $sslVersion |
Definition at line 638 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setAcceptedCompression | ( | $compMethod | ) |
Enables/disables reception of compressed xmlrpc responses. Note that enabling reception of compressed responses merely adds some standard http headers to xmlrpc requests. It is up to the xmlrpc server to return compressed responses when receiving such requests.
string | $compMethod | either 'gzip', 'deflate', 'any' or '' |
Definition at line 276 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setCaCertificate | ( | $caCert, | |
$isDir = false |
|||
) |
Add a CA certificate to verify server with (see man page about CURLOPT_CAINFO for more details).
string | $caCert | certificate file name (or dir holding certificates) |
bool | $isDir | set to true to indicate cacert is a dir. defaults to false |
Definition at line 197 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setCertificate | ( | $cert, | |
$certPass | |||
) |
Add a client-side https certificate.
string | $cert | |
string | $certPass |
Definition at line 184 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setCookie | ( | $name, | |
$value = '' , |
|||
$path = '' , |
|||
$domain = '' , |
|||
$port = null |
|||
) |
Adds a cookie to list of cookies that will be sent to server. NB: setting any param but name and value will turn the cookie into a 'version 1' cookie: do not do it unless you know what you are doing.
string | $name | |
string | $value | |
string | $path | |
string | $domain | |
int | $port |
Definition at line 312 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setCredentials | ( | $u, | |
$p, | |||
$t = 1 |
|||
) |
Add some http BASIC AUTH credentials, used by the client to authenticate.
string | $u | username |
string | $p | password |
integer | $t | auth type. See curl_setopt man page for supported auth types. Defaults to CURLAUTH_BASIC (basic auth) |
Definition at line 171 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::SetCurlOptions | ( | $options | ) |
Directly set cURL options, for extra flexibility It allows eg. to bind client to a specific IP interface / address.
array | $options |
Definition at line 331 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setDebug | ( | $in | ) |
Enables/disables the echoing to screen of the xmlrpc responses received.
integer | $in | values 0, 1 and 2 are supported (2 = echo sent msg too, before received response) |
Definition at line 159 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setKey | ( | $key, | |
$keyPass | |||
) |
Set attributes for SSL communication: private SSL key NB: does not work in older php/curl installs Thanks to Daniel Convissor.
string | $key | The name of a file containing a private SSL key |
string | $keyPass | The secret password needed to use the private SSL key |
Definition at line 214 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setProxy | ( | $proxyHost, | |
$proxyPort, | |||
$proxyUsername = '' , |
|||
$proxyPassword = '' , |
|||
$proxyAuthType = 1 |
|||
) |
Set proxy info.
string | $proxyHost | |
string | $proxyPort | Defaults to 8080 for HTTP and 443 for HTTPS |
string | $proxyUsername | Leave blank if proxy has public access |
string | $proxyPassword | Leave blank if proxy has public access |
int | $proxyAuthType | set to constant CURLAUTH_NTLM to use NTLM auth with proxy |
Definition at line 259 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setRequestCompression | ( | $compMethod | ) |
Enables/disables http compression of xmlrpc request. Take care when sending compressed requests: servers might not support them (and automatic fallback to uncompressed requests is not yet implemented).
string | $compMethod | either 'gzip', 'deflate' or '' |
Definition at line 294 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setSSLVerifyHost | ( | $i | ) |
Set attributes for SSL communication: verify match of server cert w. hostname.
int | $i |
Definition at line 235 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setSSLVerifyPeer | ( | $i | ) |
Set attributes for SSL communication: verify server certificate.
bool | $i | enable/disable verification of peer certificate |
Definition at line 225 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::setSSLVersion | ( | $i | ) |
Set attributes for SSL communication: SSL version to use. Best left at 0 (default value ): let cURL decide
int | $i |
Definition at line 245 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::SetUserAgent | ( | $agentString | ) |
Set user-agent string that will be used by this client instance in http headers sent to the server.
string | $agentString |
Definition at line 342 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$accepted_charset_encodings = array() |
Charset encodings that can be decoded without problems by the client.
Definition at line 67 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$accepted_compression = array() |
List of http compression methods accepted by the client for responses. NB: PHP supports deflate, gzip compressions out of the box if compiled w. zlib.
NNB: you can set it to any non-empty array for HTTP11 and HTTPS, since in those cases it will be up to CURL to decide the compression methods it supports. You might check for the presence of 'zlib' in the output of curl_version() to determine wheter compression is supported or not
Definition at line 53 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$authtype = 1 |
Definition at line 21 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$cacert = '' |
Definition at line 25 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$cacertdir = '' |
Definition at line 26 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$cert = '' |
Definition at line 23 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$certpass = '' |
Definition at line 24 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$cookies = array() |
Definition at line 39 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$debug = 0 |
Definition at line 17 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$errno |
Definition at line 15 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$errstr |
Definition at line 16 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$extracurlopts = array() |
Definition at line 40 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$keepalive = false |
Whether to use persistent connections for http 1.1 and https.
Definition at line 65 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$key = '' |
Definition at line 27 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$keypass = '' |
Definition at line 28 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$method = 'http' |
Definition at line 10 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$no_multicall = false |
Definition at line 42 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$password = '' |
Definition at line 20 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$path |
Definition at line 13 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$port = 0 |
Definition at line 12 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$proxy = '' |
Definition at line 33 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$proxy_authtype = 1 |
Definition at line 37 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$proxy_pass = '' |
Definition at line 36 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$proxy_user = '' |
Definition at line 35 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$proxyport = 0 |
Definition at line 34 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$request_charset_encoding = '' |
Charset encoding to be used in serializing request. NULL = use ASCII.
Definition at line 69 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$request_compression = '' |
Name of compression scheme to be used for sending requests. Either null, gzip or deflate.
Definition at line 58 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$return_type = 'xmlrpcvals' |
Decides the content of Response objects returned by calls to send() valid strings are 'xmlrpcvals', 'phpvals' or 'xml'.
Definition at line 74 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$server |
Definition at line 11 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$sslversion = 0 |
Definition at line 31 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$user_agent |
Sent to servers in http headers.
Definition at line 78 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$username = '' |
Definition at line 19 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$verifyhost = 2 |
Definition at line 30 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$verifypeer = true |
Definition at line 29 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.
PhpXmlRpc\Client::$xmlrpc_curl_handle = null |
CURL handle: used for keep-alive connections (PHP 4.3.8 up, see: http://curl.haxx.se/docs/faq.html#7.3).
Definition at line 63 of file generic/plagiarism/vendor/phpxmlrpc/phpxmlrpc/src/Client.php.