Lingo Dictionary > O-R > proxyServer |  |

proxyServer

Syntax

    proxyServer serverType, "ipAddress", portNum
    proxyServer()

Description

Command; sets the values of an FTP or HTTP proxy server, as follows:

| `serverType`—`#ftp` or `#http`
| `ipAddress`—A string containing the IP address
| `portNum`—The integer value of the port number

If you use the syntax `proxyServer()`, this element returns the settings of an FTP or HTTP proxy server.

Example

This statement sets up an HTTP proxy server at IP address 197.65.208.157 using port 5:

    proxyServer #http,"197.65.208.157",5

Example

This statement returns the port number of an HTTP proxy server:

    put proxyServer(#http,#port)

If no server type is specified, the function returns 1.

Example

This statement returns the IP address string of an HTTP proxy server:

    put proxyServer(#http)

Example

This statement turns off an FTP proxy server:

    proxyServer #ftp,#stop