revXMLRPC_SetHost

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revXMLRPC_SetHost <XMLRPCdocumentID>, <RPChost> [, <RPCport>]
Associationsxml-rpc library
Summary

Sets the host and optionally the port of an XML-RPC document structure.

Introduced2.5
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
XMLRPCdocumentID

The number returned by the revXMLRPC_CreateRequest when you created the XML-RPC request.

RPChost

The IP address or domain name of the host you want to connect to.

RPCport

The port number you want to connect to. If you don't specify a port, port 80 is used. (On most systems, port 80 is used for HTTP connections.)

Example
revXMLRPC_SetHost theRequest,"www.livecode.com"
revXMLRPC_SetHost myRequest,"example.com",10000
Values
NameTypeDescription
The result

If the revXMLRPC_SetHost command encounters an error, the result is set to an error message beginning with "xmlrpcerr".

RelatedCommand: revXMLRPC_SetPort
Function: result, revXMLRPC_GetHost, revXMLRPC_CreateRequest
Glossary: LiveCode custom library, Standalone Application Settings, standalone application, command, XML-RPC, XML-RPC document
Library: XML-RPC library
Securitydisk, process
Description

Use the revXMLRPC_SetHost command to set the host and optionally the port that is the target of the execution of an XML-RPC request.

Tagsnetworking