FTPSetProxy

Purpose

This function gives access to ftp servers.  This command is used to set the proxy server and the proxy type in order to access a given server.

Proxy type values:

Value

Description

0 (none)

No proxy server is being used.  This is the default value.

1 (user)

The client is not logged into the proxy server.  The USER command is sent in the format username@ftpsite followed by the password.  This is the format used with the Gauntlet proxy server.

2 (login)

The client is logged into the proxy server.  The USER command is then sent in the format username@ftpsite followed by the password.  This is the format used by the InterLock proxy server.

3 (open)

The client is not logged into the proxy server.  The OPEN command is sent specifying the host name, followed by the username and password.

4 (site)

The client is logged into the server.  The SITE command is sent, specifying the host name, followed by the username and the password.

Parameters

Parameter: phost
Type: string
Description: This is the name or IP address of the host to connect to like "HomeSeer.com".

Parameter: puser
Type: string
Description: This is the username to log in with.

Parameter: ppassword
Type: string
Description: This is the password used to access the proxy.

Parameter: pport
Type: integer
Description: This is the port number on server to connect with (80 = standard web server).

Parameter: ptype
Type:
integer
Description: This is the
proxy type (see the types above).

Returns

Not applicable.