XML_RPC
[ class tree: XML_RPC ] [ index: XML_RPC ] [ all elements ]

Class: XML_RPC_Client

Source Location: /XML_RPC-1.4.8/RPC.php

Class Overview

XML_RPC_Base
   |
   --XML_RPC_Client

The methods and properties for submitting XML RPC requests


Author(s):

Version:

  • Release: 1.4.8

Copyright:

  • 1999-2001 Edd Dumbill, 2001-2005 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_RPC_Base

XML_RPC_Base::isError()
Tell whether something is a PEAR_Error object
XML_RPC_Base::raiseError()
PEAR Error handling

Class Details

[line 601]
The methods and properties for submitting XML RPC requests


[ Top ]


Class Variables

$debug =  0

[line 695]

The current debug mode (1 = on, 0 = off)

Type:   integer


[ Top ]

$errno =  0

[line 683]

The error number, if any

Type:   integer


[ Top ]

$errstr =  ''

[line 689]

The error message, if any

Type:   string


[ Top ]

$headers =  ''

[line 701]

The HTTP headers for the current request.

Type:   string


[ Top ]

$password =  ''

[line 643]

A password for accessing the RPC server

Type:   string


[ Top ]

$path =  ''

[line 607]

The path and name of the RPC server script you want the request to go to

Type:   string


[ Top ]

$port =  80

[line 629]

The port for connecting to the remote server

The default is 80 for http:// connections and 443 for https:// and ssl:// connections.


Type:   integer


[ Top ]

$protocol =  'http://'

[line 619]

The protocol to use in contacting the remote server

Type:   string


[ Top ]

$proxy =  ''

[line 649]

The name of the proxy server to use, if any

Type:   string


[ Top ]

$proxy_pass =  ''

[line 677]

A password for accessing the proxy server

Type:   string


[ Top ]

$proxy_port =  8080

[line 665]

The port for connecting to the proxy server

The default is 8080 for http:// connections and 443 for https:// and ssl:// connections.


Type:   integer


[ Top ]

$proxy_protocol =  'http://'

[line 655]

The protocol to use in contacting the proxy server, if any

Type:   string


[ Top ]

$proxy_user =  ''

[line 671]

A user name for accessing the proxy server

Type:   string


[ Top ]

$server =  ''

[line 613]

The name of the remote server to connect to

Type:   string


[ Top ]

$username =  ''

[line 636]

A user name for accessing the RPC server

Type:   string


[ Top ]



Method Detail

XML_RPC_Client (Constructor)   [line 728]

void XML_RPC_Client( string $path, string $server, [integer $port = 0], [string $proxy = ''], [integer $proxy_port = 0], [string $proxy_user = ''], [string $proxy_pass = ''])

Sets the object's properties

Parameters:

string   $path     the path and name of the RPC server script you want the request to go to
string   $server     the URL of the remote server to connect to. If this parameter doesn't specify a protocol and $port is 443, ssl:// is assumed.
integer   $port     a port for connecting to the remote server. Defaults to 80 for http:// connections and 443 for https:// and ssl:// connections.
string   $proxy     the URL of the proxy server to use, if any. If this parameter doesn't specify a protocol and $port is 443, ssl:// is assumed.
integer   $proxy_port     a port for connecting to the remote server. Defaults to 8080 for http:// connections and 443 for https:// and ssl:// connections.
string   $proxy_user     a user name for accessing the proxy server
string   $proxy_pass     a password for accessing the proxy server

[ Top ]

createHeaders   [line 973]

boolean createHeaders( object $msg)

Determines the HTTP headers and puts it in the $headers property
  • Return: TRUE if okay, FALSE if the message payload isn't set.
  • Access: protected

Parameters:

object   $msg     the XML_RPC_Message object

[ Top ]

send   [line 837]

object an send( object $msg, [int $timeout = 0])

Transmit the RPC request via HTTP 1.0 protocol

Parameters:

object   $msg     the XML_RPC_Message object
int   $timeout     how many seconds to wait for the request

[ Top ]

sendPayloadHTTP10   [line 871]

object an sendPayloadHTTP10( object $msg, string $server, int $port, [int $timeout = 0], [string $username = ''], [string $password = ''])

Transmit the RPC request via HTTP 1.0 protocol

Requests should be sent using XML_RPC_Client send() rather than calling this method directly.

  • Return: XML_RPC_Response object. 0 is returned if any problems happen.
  • See: XML_RPC_Client::send()
  • Access: protected

Parameters:

object   $msg     the XML_RPC_Message object
string   $server     the server to send the request to
int   $port     the server port send the request to
int   $timeout     how many seconds to wait for the request before giving up
string   $username     a user name for accessing the RPC server
string   $password     a password for accessing the RPC server

[ Top ]

setCredentials   [line 819]

void setCredentials( string $u, string $p)

Set username and password properties for connecting to the RPC server

Parameters:

string   $u     the user name
string   $p     the password

[ Top ]

setDebug   [line 800]

void setDebug( int $in)

Change the current debug mode

Parameters:

int   $in     where 1 = on, 0 = off

[ Top ]


Documentation generated on Sun, 16 Apr 2006 12:02:31 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.