new

- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (34)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
new(host=nil, path=nil, port=nil, proxy_host=nil, proxy_port=nil, user=nil, password=nil, use_ssl=nil, timeout=nil)
public
Creates an object which represents the remote XML-RPC server on the given host. If the server is CGI-based, path is the path to the CGI-script, which will be called, otherwise (in the case of a standalone server) path should be "/RPC2". port is the port on which the XML-RPC server listens.
If proxy_host is given, then a proxy server listening at proxy_host is used. proxy_port is the port of the proxy server.
Default values for host, path and port are ‘localhost’, ‘/RPC2’ and ‘80’ respectively using SSL ‘443’.
If user and password are given, each time a request is sent, an Authorization header is sent. Currently only Basic Authentication is implemented, no Digest.
If use_ssl is set to true, communication over SSL is enabled.
Parameter timeout is the time to wait for a XML-RPC response, defaults to 30.