PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FTPProxy (Function)
In French: FTPProxy
Specifies whether the communication functions that use the FTP protocol must go through a proxy to run their requests.
This function is taken into account during the next call to a function that uses the FTP protocol.
Caution: This function applies to the FTP protocol only (and not to FTPIS/FTPES/SFTP).
Example
// Defines the FTP proxy
FTPProxy(ftpProxyUserTogether, "test", 2121, "test", "test")

// Opens the connection
ConnectionID is int
ConnectionID = FTPConnect("mytest.doc.com", "test", "test", 21, True, 20)
IF ConnectionID = -1 THEN
Error(ErrorInfo(errFullDetails))
ELSE
...
END
Syntax
FTPProxy(<Proxy Type> [, <Proxy Address> [, <Proxy Port> [, <Login> [, <Password>]]]])
<Proxy Type>: Integer constant
Type of the FTP proxy to use:
FTPProxyNoneftpProxyNoneAllows to cancel the use of the FTP proxy.
FTPProxyOpenftpProxyOpenFTP proxy requiring the "OPEN" command.
The following statements will be sent:
  • USER with the Proxy login
  • PASS with the Proxy password
  • OPEN in the following format: @<Address of FTP Server>:<Port of FTP Server>
  • USER with the FTP login
  • PASS with the FTP password
FTPProxySiteftpProxySiteFTP proxy requiring the "SITE" command.
The following statements will be sent:
  • USER with the Proxy login
  • PASS with the Proxy password
  • SITE in the following format: @<Address of FTP Server>:<Port of FTP Server>
  • USER with the FTP login
  • PASS with the FTP password
FTPProxyUserTogetherftpProxyUserTogetherFTP proxy requiring the "USER" command with the user and the password.
The following statements will be sent:
  • USER in the following format: <Proxy Login>:<FTP Login>@<Address of FTP Server>:<Port of FTP Server>
  • PASS in the following format: <Proxy Password>:<FTP Password>
FTPProxyUserSeparateftpProxyUserSeparateFTP proxy requiring the "USER" command and the "PASS" command separately.
The following statements will be sent:
  • USER with the Proxy login
  • PASS with the Proxy password
  • USER in the following format: <FTP Login>@<Address of FTP Server>:<Port of FTP Server>
  • PASS with the FTP password
<Proxy Address>: Optional character string
Address of the FTP proxy in the following format:
  • IP address in XXX.XXX.XXX.XXX format (125.5.110.100 for example).
  • URL containing the server name (www.windev.com for example). This syntax is recommended.
  • IP address returned by NetIPAddress.
<Proxy Port>: Optional integer
Port number of the FTP proxy. This parameter is set to 21. if it is not specified
<Login>: Optional character string (with quotes)
Authentication beside the FTP proxy. No authentication is performed if this parameter corresponds to an empty string ("", default value).
<Password>: Optional character string (with quotes)
Password for authentication beside the proxy. This parameter is ignored if <Login> corresponds to an empty string ("").
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment